
<!DOCTYPE HTML>
<html lang="zh-hans" >
<head>
    <meta charset="UTF-8">
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>调试Flutter APP · 《Flutter实战》</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="baidu-site-verification" content="Y34sAqDKUH"/>
    <meta name="theme-color" content="#ffffff">
    <!--<meta name="description" content="">-->
    <meta name="description" content="《Flutter实战》是Flutter中文网（https://flutterchina.club）开源的电子书，旨在帮助开发者系统化的了解并学习Flutter。">
    <meta name="keywords" content="flutter实战,flutter书籍,flutter电子书,flutter中文网 ">
    <meta name="generator" content="GitBook 3.2.3">
    
    <meta name="author" content="wendux 824783146@qq.com">
    
    
    
    
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/style.css">

    
    
    
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-search-pro/search.css">
    
    
    
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-ace/ace.css">
    
    
    
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-splitter/splitter.css">
    
    
    
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-toggle-chapters/toggle.css">
    
    
    
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-prism/prism.css">
    
    
    
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-donate/plugin.css">
    
    
    
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-fontsettings/website.css">
    
    
    

    

    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="thread_model_and_error_report.html" />
    
    
    <link rel="prev" href="flutter_assets_mgr.html" />
    

    <style>
        .pull-right > i {
            font-size: 25px;
            color: #777 !important;
            cursor: pointer;

        }

        .pull-right > i:hover {
            color: #777 !important;
        }

        body {
            font-size: 15px !important;
        }

        a[href='../todo.html'], a[href='todo.html'] {
            color: #888 !important;
        }

        .copyright {
            text-align: center;
            margin: 80px 16px 30px 16px;
            padding-top: 16px;
            border-top: #eee 1px solid;
            color: grey;
            font-size: .9em;
        }

        .ad {
            color: white;
            text-align: center;
            background: url(https://img.alicdn.com/tfs/TB1Huu7vMmTBuNjy1XbXXaMrVXa-2880-400.png);
            background-size: cover;
            cursor: pointer;
            margin-bottom: 30px;
            padding: 18px
        }

        .ad:hover {
            opacity: .8;
        }
    </style>
</head>
<body>
<!--<div id="ad" style="display: none">-->
    <!--<div class="ad ad0"-->
         <!--onclick="_track('aliyun','https://promotion.aliyun.com/ntms/yunparter/invite.html?userCode=8hhi4dts')">-->
        <!--<div style="font-size: 1.3em; padding-right: 120px; position: relative; top: 12px">阿里云新春特惠</div>-->
        <!--<div style="color:orange; font-size: 13px">限时红包 最高￥<span style="font-size: 40px">1888</span></div>-->
    <!--</div>-->
    <!--<div class="ad ad1"-->
         <!--onclick="_track('aliyun-puhui','https://promotion.aliyun.com/ntms/act/qwbk.html?spm=5176.11533457.1089570.10.74e877e33jtaGy&userCode=8hhi4dts')">-->
        <!--<div style="font-size: 1.5em;">阿里云全民云计算-新春特惠</div>-->
        <!--<div style="color:orange; font-size: 18px;padding-top: 4px;">普惠上云，云服务器1核1G仅需293元/年</div>-->
    <!--</div>-->
<!--</div>-->

<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://flutterchina.club" target="_blank" class="custom-link"><div><img height=20 style='position:relative; top:5px; padding-right:5px ' src='https://cdn.jsdelivr.net/gh/flutterchina/website@1.0/images/favicon.png'/> Flutter中文网</div></a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    缘起
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../chapter1/">
            
                <a href="../chapter1/">
            
                    
                    起步
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../chapter1/mobile_development_intro.html">
            
                <a href="../chapter1/mobile_development_intro.html">
            
                    
                    移动开发技术简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../chapter1/flutter_intro.html">
            
                <a href="../chapter1/flutter_intro.html">
            
                    
                    Flutter简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../chapter1/install_flutter.html">
            
                <a href="../chapter1/install_flutter.html">
            
                    
                    搭建Flutter开发环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../chapter1/configuration.html">
            
                <a href="../chapter1/configuration.html">
            
                    
                    常见配置问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../chapter1/dart.html">
            
                <a href="../chapter1/dart.html">
            
                    
                    Dart语言简介
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="./">
            
                <a href="./">
            
                    
                    第一个Flutter应用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="first_flutter_app.html">
            
                <a href="first_flutter_app.html">
            
                    
                    计数器示例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="flutter_router.html">
            
                <a href="flutter_router.html">
            
                    
                    路由管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="flutter_package_mgr.html">
            
                <a href="flutter_package_mgr.html">
            
                    
                    包管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="flutter_assets_mgr.html">
            
                <a href="flutter_assets_mgr.html">
            
                    
                    资源管理
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.5" data-path="flutter_app_debug.html">
            
                <a href="flutter_app_debug.html">
            
                    
                    调试Flutter APP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="thread_model_and_error_report.html">
            
                <a href="thread_model_and_error_report.html">
            
                    
                    Dart线程模型及异常捕获
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../chapter3/">
            
                <a href="../chapter3/">
            
                    
                    基础Widgets
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../chapter3/flutter_widget_intro.html">
            
                <a href="../chapter3/flutter_widget_intro.html">
            
                    
                    Widget简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../chapter3/text.html">
            
                <a href="../chapter3/text.html">
            
                    
                    文本、字体样式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../chapter3/buttons.html">
            
                <a href="../chapter3/buttons.html">
            
                    
                    按钮
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../chapter3/img_and_icon.html">
            
                <a href="../chapter3/img_and_icon.html">
            
                    
                    图片和Icon
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../chapter3/radio_and_checkbox.html">
            
                <a href="../chapter3/radio_and_checkbox.html">
            
                    
                    单选框和复选框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../chapter3/input_and_form.html">
            
                <a href="../chapter3/input_and_form.html">
            
                    
                    输入框和表单
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../chapter4/">
            
                <a href="../chapter4/">
            
                    
                    布局类Widgets
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../chapter4/intro.html">
            
                <a href="../chapter4/intro.html">
            
                    
                    布局类Widgets简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../chapter4/row_and_column.html">
            
                <a href="../chapter4/row_and_column.html">
            
                    
                    线性布局Row、Column
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../chapter4/flex.html">
            
                <a href="../chapter4/flex.html">
            
                    
                    弹性布局Flex
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../chapter4/wrap_and_flow.html">
            
                <a href="../chapter4/wrap_and_flow.html">
            
                    
                    流式布局Wrap、Flow
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../chapter4/stack.html">
            
                <a href="../chapter4/stack.html">
            
                    
                    层叠布局Stack、Positioned
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../chapter5/">
            
                <a href="../chapter5/">
            
                    
                    容器类Widgets
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../chapter5/padding.html">
            
                <a href="../chapter5/padding.html">
            
                    
                    Padding
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../chapter5/constrainedbox_and_sizebox.html">
            
                <a href="../chapter5/constrainedbox_and_sizebox.html">
            
                    
                    布局限制类容器ConstrainedBox、SizeBox
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../chapter5/decoratedbox.html">
            
                <a href="../chapter5/decoratedbox.html">
            
                    
                    装饰容器DecoratedBox
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../chapter5/transform.html">
            
                <a href="../chapter5/transform.html">
            
                    
                    变换Transform
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../chapter5/container.html">
            
                <a href="../chapter5/container.html">
            
                    
                    Container容器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../chapter5/material_scaffold.html">
            
                <a href="../chapter5/material_scaffold.html">
            
                    
                    Scaffold、TabBar、底部导航
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../chapter6/">
            
                <a href="../chapter6/">
            
                    
                    可滚动Widgets
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../chapter6/intro.html">
            
                <a href="../chapter6/intro.html">
            
                    
                    可滚动Widgets简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../chapter6/single_child_scrollview.html">
            
                <a href="../chapter6/single_child_scrollview.html">
            
                    
                    SingleChildScrollView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../chapter6/listview.html">
            
                <a href="../chapter6/listview.html">
            
                    
                    ListView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../chapter6/gridview.html">
            
                <a href="../chapter6/gridview.html">
            
                    
                    GridView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../chapter6/custom_scrollview.html">
            
                <a href="../chapter6/custom_scrollview.html">
            
                    
                    CustomScrollView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../chapter6/scroll_controller.html">
            
                <a href="../chapter6/scroll_controller.html">
            
                    
                    滚动监听及控制ScrollController
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../chapter7/">
            
                <a href="../chapter7/">
            
                    
                    功能型Widgets
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../chapter7/willpopscope.html">
            
                <a href="../chapter7/willpopscope.html">
            
                    
                    导航返回拦截-WillPopScope
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../chapter7/inherited_widget.html">
            
                <a href="../chapter7/inherited_widget.html">
            
                    
                    数据共享-InheritedWidget
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../chapter7/theme.html">
            
                <a href="../chapter7/theme.html">
            
                    
                    主题-Theme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../chapter8/">
            
                <a href="../chapter8/">
            
                    
                    事件处理与通知
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../chapter8/listener.html">
            
                <a href="../chapter8/listener.html">
            
                    
                    原始指针事件处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../chapter8/gesture.html">
            
                <a href="../chapter8/gesture.html">
            
                    
                    手势识别
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../chapter8/eventbus.html">
            
                <a href="../chapter8/eventbus.html">
            
                    
                    全局事件总线
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../chapter8/notification.html">
            
                <a href="../chapter8/notification.html">
            
                    
                    通知Notification
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../chapter9/">
            
                <a href="../chapter9/">
            
                    
                    动画
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../chapter9/intro.html">
            
                <a href="../chapter9/intro.html">
            
                    
                    Flutter动画简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../chapter9/animation_structure.html">
            
                <a href="../chapter9/animation_structure.html">
            
                    
                    动画结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../chapter9/route_transition.html">
            
                <a href="../chapter9/route_transition.html">
            
                    
                    自定义路由过渡动画
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../chapter9/hero.html">
            
                <a href="../chapter9/hero.html">
            
                    
                    Hero动画
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../chapter9/stagger_animation.html">
            
                <a href="../chapter9/stagger_animation.html">
            
                    
                    交错动画
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../chapter13/">
            
                <a href="../chapter13/">
            
                    
                    自定义Widget
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../chapter13/intro.html">
            
                <a href="../chapter13/intro.html">
            
                    
                    自定义Widget方法简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../chapter13/combine.html">
            
                <a href="../chapter13/combine.html">
            
                    
                    通过组合现有Widget实现
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../chapter13/turn_box.html">
            
                <a href="../chapter13/turn_box.html">
            
                    
                    实例：TurnBox
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../chapter13/custom_paint.html">
            
                <a href="../chapter13/custom_paint.html">
            
                    
                    CustomPaint与Canvas
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../chapter13/gradient_circular_progress_demo.html">
            
                <a href="../chapter13/gradient_circular_progress_demo.html">
            
                    
                    实例：圆形渐变进度条(自绘)
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../chapter10/">
            
                <a href="../chapter10/">
            
                    
                    文件操作与网络请求
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../chapter10/file_operation.html">
            
                <a href="../chapter10/file_operation.html">
            
                    
                    文件操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../chapter10/http.html">
            
                <a href="../chapter10/http.html">
            
                    
                    Http请求-HttpClient
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="../chapter10/dio.html">
            
                <a href="../chapter10/dio.html">
            
                    
                    Http请求-Dio package
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" data-path="../chapter10/download_with_chunks.html">
            
                <a href="../chapter10/download_with_chunks.html">
            
                    
                    实例：Http分块下载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" data-path="../chapter10/websocket.html">
            
                <a href="../chapter10/websocket.html">
            
                    
                    WebSocket
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.6" data-path="../chapter10/socket.html">
            
                <a href="../chapter10/socket.html">
            
                    
                    使用Socket API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.7" data-path="../chapter10/json_model.html">
            
                <a href="../chapter10/json_model.html">
            
                    
                    Json转Model
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../chapter11/">
            
                <a href="../chapter11/">
            
                    
                    包与插件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../chapter11/develop_package.html">
            
                <a href="../chapter11/develop_package.html">
            
                    
                    开发package
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../chapter11/platform-channel.html">
            
                <a href="../chapter11/platform-channel.html">
            
                    
                    插件开发：平台通道简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="../chapter11/android_implement.html">
            
                <a href="../chapter11/android_implement.html">
            
                    
                    插件开发：实现Android端API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.4" data-path="../chapter11/ios_implement.html">
            
                <a href="../chapter11/ios_implement.html">
            
                    
                    插件开发：实现IOS端API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.5" data-path="../todo.html">
            
                <a href="../todo.html">
            
                    
                    系统能力调用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../chapter12/">
            
                <a href="../chapter12/">
            
                    
                    国际化
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../chapter12/multi_languages_support.html">
            
                <a href="../chapter12/multi_languages_support.html">
            
                    
                    让App支持多语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../chapter12/locallization_implement.html">
            
                <a href="../chapter12/locallization_implement.html">
            
                    
                    实现Localizations
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="../chapter12/intl.html">
            
                <a href="../chapter12/intl.html">
            
                    
                    使用Intl包
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../chapter14/">
            
                <a href="../chapter14/">
            
                    
                    Flutter核心原理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../chapter14/flutter_ui_system.html">
            
                <a href="../chapter14/flutter_ui_system.html">
            
                    
                    Flutter UI系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="../chapter14/element_buildcontext.html">
            
                <a href="../chapter14/element_buildcontext.html">
            
                    
                    Element和BuildContext
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="../chapter14/render_object.html">
            
                <a href="../chapter14/render_object.html">
            
                    
                    RenderObject与RenderBox
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="../chapter14/flutter_app_startup.html">
            
                <a href="../chapter14/flutter_app_startup.html">
            
                    
                    Flutter从启动到显示
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../todo.html">
            
                <a href="../todo.html">
            
                    
                    Flutter资源汇总
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    
    <a class="btn pull-right" aria-label="GitHub">
        <i class="fa fa-edit" title="编辑本文"></i>
    </a>
    <a class="btn pull-right" aria-label="GitHub" href="https://github.com/flutterchina/flutter-in-action">
        <i class="fa fa-github" title="查看本书开源项目"></i>
    </a>
    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >调试Flutter APP</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x8C03;&#x8BD5;flutter&#x5E94;&#x7528;">&#x8C03;&#x8BD5;Flutter&#x5E94;&#x7528;</h1>
<p>&#x6709;&#x5404;&#x79CD;&#x5404;&#x6837;&#x7684;&#x5DE5;&#x5177;&#x548C;&#x529F;&#x80FD;&#x6765;&#x5E2E;&#x52A9;&#x8C03;&#x8BD5;Flutter&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x3002;</p>
<h2 id="dart-&#x5206;&#x6790;&#x5668;">Dart &#x5206;&#x6790;&#x5668;</h2>
<p>&#x5728;&#x8FD0;&#x884C;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x524D;&#xFF0C;&#x8BF7;&#x8FD0;&#x884C;<code>flutter analyze</code>&#x6D4B;&#x8BD5;&#x4F60;&#x7684;&#x4EE3;&#x7801;&#x3002;&#x8FD9;&#x4E2A;&#x5DE5;&#x5177;&#xFF08;&#x5B83;&#x662F;<code>dartanalyzer</code>&#x5DE5;&#x5177;&#x7684;&#x4E00;&#x4E2A;&#x5305;&#x88C5;&#xFF09;&#x5C06;&#x5206;&#x6790;&#x4F60;&#x7684;&#x4EE3;&#x7801;&#x5E76;&#x5E2E;&#x52A9;&#x4F60;&#x53D1;&#x73B0;&#x53EF;&#x80FD;&#x7684;&#x9519;&#x8BEF;&#x3002; &#x5982;&#x679C;&#x4F60;&#x4F7F;&#x7528;IntelliJ&#x7684;Flutter&#x63D2;&#x4EF6;&#xFF0C;&#x90A3;&#x4E48;&#x5DF2;&#x7ECF;&#x81EA;&#x52A8;&#x542F;&#x7528;&#x4E86;&#x3002;</p>
<p>Dart&#x5206;&#x6790;&#x5668;&#x5927;&#x91CF;&#x4F7F;&#x7528;&#x4E86;&#x4EE3;&#x7801;&#x4E2D;&#x7684;&#x7C7B;&#x578B;&#x6CE8;&#x91CA;&#x6765;&#x5E2E;&#x52A9;&#x8FFD;&#x8E2A;&#x95EE;&#x9898;&#x3002;&#x6211;&#x4EEC;&#x9F13;&#x52B1;&#x60A8;&#x5728;&#x4EFB;&#x4F55;&#x5730;&#x65B9;&#x4F7F;&#x7528;&#x5B83;&#x4EEC;&#xFF08;&#x907F;&#x514D;var&#x3001;&#x65E0;&#x7C7B;&#x578B;&#x7684;&#x53C2;&#x6570;&#x3001;&#x65E0;&#x7C7B;&#x578B;&#x7684;&#x5217;&#x8868;&#x6587;&#x5B57;&#x7B49;&#xFF09;&#xFF0C;&#x56E0;&#x4E3A;&#x8FD9;&#x662F;&#x8FFD;&#x8E2A;&#x95EE;&#x9898;&#x7684;&#x6700;&#x5FEB;&#x7684;&#x65B9;&#x5F0F;&#x3002;</p>
<h2 id="dart-observatory-&#x8BED;&#x53E5;&#x7EA7;&#x7684;&#x5355;&#x6B65;&#x8C03;&#x8BD5;&#x548C;&#x5206;&#x6790;&#x5668;">Dart Observatory (&#x8BED;&#x53E5;&#x7EA7;&#x7684;&#x5355;&#x6B65;&#x8C03;&#x8BD5;&#x548C;&#x5206;&#x6790;&#x5668;)</h2>
<p>&#x5982;&#x679C;&#x60A8;&#x4F7F;&#x7528;<code>flutter run</code>&#x542F;&#x52A8;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#xFF0C;&#x90A3;&#x4E48;&#x5F53;&#x5B83;&#x8FD0;&#x884C;&#x65F6;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x6253;&#x5F00;Observatory URL&#x7684;Web&#x9875;&#x9762;&#xFF08;&#x4F8B;&#x5982;Observatory&#x76D1;&#x542C;<a href="http://127.0.0.1:8100/" target="_blank">http://127.0.0.1:8100/</a>&#xFF09;&#xFF0C; &#x76F4;&#x63A5;&#x4F7F;&#x7528;&#x8BED;&#x53E5;&#x7EA7;&#x5355;&#x6B65;&#x8C03;&#x8BD5;&#x5668;&#x8FDE;&#x63A5;&#x5230;&#x60A8;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x3002;&#x5982;&#x679C;&#x60A8;&#x4F7F;&#x7528;&#x7684;&#x662F;IntelliJ&#xFF0C;&#x5219;&#x8FD8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x5176;&#x5185;&#x7F6E;&#x7684;&#x8C03;&#x8BD5;&#x5668;&#x6765;&#x8C03;&#x8BD5;&#x60A8;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x3002;</p>
<p>Observatory &#x540C;&#x65F6;&#x652F;&#x6301;&#x5206;&#x6790;&#x3001;&#x68C0;&#x67E5;&#x5806;&#x7B49;&#x3002;&#x6709;&#x5173;Observatory&#x7684;&#x66F4;&#x591A;&#x4FE1;&#x606F;&#x8BF7;&#x53C2;&#x8003;<a href="https://dart-lang.github.io/observatory/" target="_blank">Observatory &#x6587;&#x6863;</a>.</p>
<p>&#x5982;&#x679C;&#x60A8;&#x4F7F;&#x7528;Observatory&#x8FDB;&#x884C;&#x5206;&#x6790;&#xFF0C;&#x8BF7;&#x786E;&#x4FDD;&#x901A;&#x8FC7;<code>--profile</code>&#x9009;&#x9879;&#x6765;&#x8FD0;&#x884C;<code>flutter run</code>&#x547D;&#x4EE4;&#x6765;&#x8FD0;&#x884C;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x3002; &#x5426;&#x5219;&#xFF0C;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x5C06;&#x51FA;&#x73B0;&#x7684;&#x4E3B;&#x8981;&#x95EE;&#x9898;&#x5C06;&#x662F;&#x8C03;&#x8BD5;&#x65AD;&#x8A00;&#xFF0C;&#x4EE5;&#x9A8C;&#x8BC1;&#x6846;&#x67B6;&#x7684;&#x5404;&#x79CD;&#x4E0D;&#x53D8;&#x91CF;&#xFF08;&#x8BF7;&#x53C2;&#x9605;&#x4E0B;&#x9762;&#x7684;&#x201C;&#x8C03;&#x8BD5;&#x6A21;&#x5F0F;&#x65AD;&#x8A00;&#x201D;&#xFF09;&#x3002;</p>
<h3 id="debugger-&#x58F0;&#x660E;"><code>debugger()</code> &#x58F0;&#x660E;</h3>
<p>&#x5F53;&#x4F7F;&#x7528;Dart Observatory&#xFF08;&#x6216;&#x53E6;&#x4E00;&#x4E2A;Dart&#x8C03;&#x8BD5;&#x5668;&#xFF0C;&#x4F8B;&#x5982;IntelliJ IDE&#x4E2D;&#x7684;&#x8C03;&#x8BD5;&#x5668;&#xFF09;&#x65F6;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x8BE5;<code>debugger()</code>&#x8BED;&#x53E5;&#x63D2;&#x5165;&#x7F16;&#x7A0B;&#x5F0F;&#x65AD;&#x70B9;&#x3002;&#x8981;&#x4F7F;&#x7528;&#x8FD9;&#x4E2A;&#xFF0C;&#x4F60;&#x5FC5;&#x987B;&#x6DFB;&#x52A0;<code>import &apos;dart:developer&apos;;</code>&#x5230;&#x76F8;&#x5173;&#x6587;&#x4EF6;&#x9876;&#x90E8;&#x3002;</p>
<p><code>debugger()</code>&#x8BED;&#x53E5;&#x91C7;&#x7528;&#x4E00;&#x4E2A;&#x53EF;&#x9009;<code>when</code>&#x53C2;&#x6570;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x6307;&#x5B9A;&#x8BE5;&#x53C2;&#x6570;&#x4EC5;&#x5728;&#x7279;&#x5B9A;&#x6761;&#x4EF6;&#x4E3A;&#x771F;&#x65F6;&#x4E2D;&#x65AD;&#xFF0C;&#x5982;&#x4E0B;&#x6240;&#x793A;&#xFF1A;</p>
<pre class="language-"><code>void someFunction(double offset) {
  debugger(when: offset &gt; 30.0);
  // ...
}
</code></pre><h2 id="print&#x3001;debugprint&#x3001;flutter-logs"><code>print</code>&#x3001;<code>debugPrint</code>&#x3001;<code>flutter logs</code></h2>
<p>Dart <code>print()</code>&#x529F;&#x80FD;&#x5C06;&#x8F93;&#x51FA;&#x5230;&#x7CFB;&#x7EDF;&#x63A7;&#x5236;&#x53F0;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<code>flutter logs</code>&#x4E86;&#x67E5;&#x770B;&#x5B83;&#xFF08;&#x57FA;&#x672C;&#x4E0A;&#x662F;&#x4E00;&#x4E2A;&#x5305;&#x88C5;<code>adb logcat</code>&#xFF09;&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x4E00;&#x6B21;&#x8F93;&#x51FA;&#x592A;&#x591A;&#xFF0C;&#x90A3;&#x4E48;Android&#x6709;&#x65F6;&#x4F1A;&#x4E22;&#x5F03;&#x4E00;&#x4E9B;&#x65E5;&#x5FD7;&#x884C;&#x3002;&#x4E3A;&#x4E86;&#x907F;&#x514D;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;Flutter&#x7684;<code>foundation</code>&#x5E93;&#x4E2D;&#x7684;<a href="https://docs.flutter.io/flutter/foundation/debugPrint.html" target="_blank"><code>debugPrint()</code></a>&#x3002; &#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x5C01;&#x88C5;print&#xFF0C;&#x5B83;&#x5C06;&#x8F93;&#x51FA;&#x9650;&#x5236;&#x5728;&#x4E00;&#x4E2A;&#x7EA7;&#x522B;&#xFF0C;&#x907F;&#x514D;&#x88AB;Android&#x5185;&#x6838;&#x4E22;&#x5F03;&#x3002;</p>
<p>Flutter&#x6846;&#x67B6;&#x4E2D;&#x7684;&#x8BB8;&#x591A;&#x7C7B;&#x90FD;&#x6709;<code>toString</code>&#x5B9E;&#x73B0;&#x3002;&#x6309;&#x7167;&#x60EF;&#x4F8B;&#xFF0C;&#x8FD9;&#x4E9B;&#x8F93;&#x51FA;&#x901A;&#x5E38;&#x5305;&#x62EC;&#x5BF9;&#x8C61;&#x7684;<code>runtimeType</code>&#x5355;&#x884C;&#x8F93;&#x51FA;&#xFF0C;&#x901A;&#x5E38;&#x5728;&#x8868;&#x5355;&#x4E2D;ClassName(more information about this instance&#x2026;)&#x3002; &#x6811;&#x4E2D;&#x4F7F;&#x7528;&#x7684;&#x4E00;&#x4E9B;&#x7C7B;&#x4E5F;&#x5177;&#x6709;<code>toStringDeep</code>&#xFF0C;&#x4ECE;&#x8BE5;&#x70B9;&#x8FD4;&#x56DE;&#x6574;&#x4E2A;&#x5B50;&#x6811;&#x7684;&#x591A;&#x884C;&#x63CF;&#x8FF0;&#x3002;&#x5DF2;&#x4E00;&#x4E9B;&#x5177;&#x6709;&#x8BE6;&#x7EC6;&#x4FE1;&#x606F;<code>toString</code>&#x7684;&#x7C7B;&#x4F1A;&#x5B9E;&#x73B0;&#x4E00;&#x4E2A;<code>toStringShort</code>&#xFF0C;&#x5B83;&#x53EA;&#x8FD4;&#x56DE;&#x5BF9;&#x8C61;&#x7684;&#x7C7B;&#x578B;&#x6216;&#x5176;&#x4ED6;&#x975E;&#x5E38;&#x7B80;&#x77ED;&#x7684;&#xFF08;&#x4E00;&#x4E2A;&#x6216;&#x4E24;&#x4E2A;&#x5355;&#x8BCD;&#xFF09;&#x63CF;&#x8FF0;&#x3002;</p>
<h2 id="&#x8C03;&#x8BD5;&#x6A21;&#x5F0F;&#x65AD;&#x8A00;">&#x8C03;&#x8BD5;&#x6A21;&#x5F0F;&#x65AD;&#x8A00;</h2>
<p>&#x5728;&#x5F00;&#x53D1;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;&#x5F3A;&#x70C8;&#x5EFA;&#x8BAE;&#x60A8;&#x4F7F;&#x7528;Flutter&#x7684;&#x201C;&#x8C03;&#x8BD5;&#x201D;&#x6A21;&#x5F0F;&#xFF0C;&#x6709;&#x65F6;&#x4E5F;&#x79F0;&#x4E3A;&#x201C;checked&#x201D;&#x6A21;&#x5F0F;&#xFF08;&#x6CE8;&#x610F;&#xFF1A;Dart2.0&#x540E;&#x201C;checked&#x201D;&#x88AB;&#x5E9F;&#x9664;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x201C;strong&#x201D; mode&#xFF09;&#x3002; &#x5982;&#x679C;&#x60A8;&#x4F7F;&#x7528;<code>flutter run</code>&#x8FD0;&#x884C;&#x7A0B;&#x5E8F;&#x3002;&#x5728;&#x8FD9;&#x79CD;&#x6A21;&#x5F0F;&#x4E0B;&#xFF0C;Dart assert&#x8BED;&#x53E5;&#x88AB;&#x542F;&#x7528;&#xFF0C;&#x5E76;&#x4E14;Flutter&#x6846;&#x67B6;&#x4F7F;&#x7528;&#x5B83;&#x6765;&#x6267;&#x884C;&#x8BB8;&#x591A;&#x8FD0;&#x884C;&#x65F6;&#x68C0;&#x67E5;&#x6765;&#x9A8C;&#x8BC1;&#x662F;&#x5426;&#x8FDD;&#x53CD;&#x4E00;&#x4E9B;&#x4E0D;&#x53EF;&#x53D8;&#x7684;&#x89C4;&#x5219;&#x3002;</p>
<p>&#x5F53;&#x4E00;&#x4E2A;&#x4E0D;&#x53EF;&#x53D8;&#x7684;&#x89C4;&#x5219;&#x88AB;&#x8FDD;&#x53CD;&#x65F6;&#xFF0C;&#x5B83;&#x88AB;&#x62A5;&#x544A;&#x7ED9;&#x63A7;&#x5236;&#x53F0;&#xFF0C;&#x5E76;&#x5E26;&#x6709;&#x4E00;&#x4E9B;&#x4E0A;&#x4E0B;&#x6587;&#x4FE1;&#x606F;&#x6765;&#x5E2E;&#x52A9;&#x8FFD;&#x8E2A;&#x95EE;&#x9898;&#x7684;&#x6839;&#x6E90;&#x3002;</p>
<p>&#x8981;&#x5173;&#x95ED;&#x8C03;&#x8BD5;&#x6A21;&#x5F0F;&#x5E76;&#x4F7F;&#x7528;&#x53D1;&#x5E03;&#x6A21;&#x5F0F;&#xFF0C;&#x8BF7;&#x4F7F;&#x7528;<code>flutter run --release</code>&#x8FD0;&#x884C;&#x60A8;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x3002; &#x8FD9;&#x4E5F;&#x5173;&#x95ED;&#x4E86;Observatory&#x8C03;&#x8BD5;&#x5668;&#x3002;&#x4E00;&#x4E2A;&#x4E2D;&#x95F4;&#x6A21;&#x5F0F;&#x53EF;&#x4EE5;&#x5173;&#x95ED;&#x9664;Observatory&#x4E4B;&#x5916;&#x6240;&#x6709;&#x8C03;&#x8BD5;&#x8F85;&#x52A9;&#x5DE5;&#x5177;&#x7684;&#xFF0C;&#x79F0;&#x4E3A;&#x201C;profile mode&#x201D;&#xFF0C;&#x7528;<code>--profile</code>&#x66FF;&#x4EE3;<code>--release</code>&#x5373;&#x53EF;&#x3002;</p>
<h2 id="&#x8C03;&#x8BD5;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x5C42;">&#x8C03;&#x8BD5;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x5C42;</h2>
<p>Flutter&#x6846;&#x67B6;&#x7684;&#x6BCF;&#x4E00;&#x5C42;&#x90FD;&#x63D0;&#x4F9B;&#x4E86;&#x5C06;&#x5176;&#x5F53;&#x524D;&#x72B6;&#x6001;&#x6216;&#x4E8B;&#x4EF6;&#x8F6C;&#x50A8;(dump)&#x5230;&#x63A7;&#x5236;&#x53F0;&#xFF08;&#x4F7F;&#x7528;<code>debugPrint</code>&#xFF09;&#x7684;&#x529F;&#x80FD;&#x3002;</p>
<h3 id="widget-&#x5C42;">Widget &#x5C42;</h3>
<p>&#x8981;&#x8F6C;&#x50A8;Widgets&#x5E93;&#x7684;&#x72B6;&#x6001;&#xFF0C;&#x8BF7;&#x8C03;&#x7528;<a href="https://docs.flutter.io/flutter/widgets/debugDumpApp.html" target="_blank"><code>debugDumpApp()</code></a>&#x3002; &#x53EA;&#x8981;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x5DF2;&#x7ECF;&#x6784;&#x5EFA;&#x4E86;&#x81F3;&#x5C11;&#x4E00;&#x6B21;&#xFF08;&#x5373;&#x5728;&#x8C03;&#x7528;<code>build()</code>&#x4E4B;&#x540E;&#x7684;&#x4EFB;&#x4F55;&#x65F6;&#x95F4;&#xFF09;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x5728;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x672A;&#x5904;&#x4E8E;&#x6784;&#x5EFA;&#x9636;&#x6BB5;&#xFF08;&#x5373;&#xFF0C;&#x4E0D;&#x5728;<code>build()</code>&#x65B9;&#x6CD5;&#x5185;&#x8C03;&#x7528; &#xFF09;&#x7684;&#x4EFB;&#x4F55;&#x65F6;&#x95F4;&#x8C03;&#x7528;&#x6B64;&#x65B9;&#x6CD5;&#xFF08;&#x5728;&#x8C03;&#x7528;<code>runApp()</code>&#x4E4B;&#x540E;&#xFF09;&#x3002;</p>
<p>&#x5982;, &#x8FD9;&#x4E2A;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;:</p>
<pre class="language-"><code class="lang-dart"><span class="token keyword">import</span> <span class="token string">&apos;package:flutter/material.dart&apos;</span><span class="token punctuation">;</span>

<span class="token keyword">void</span> <span class="token function">main</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
  <span class="token function">runApp</span><span class="token punctuation">(</span>
    <span class="token keyword">new</span> <span class="token class-name">MaterialApp</span><span class="token punctuation">(</span>
      home<span class="token punctuation">:</span> <span class="token keyword">new</span> <span class="token class-name">AppHome</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
    <span class="token punctuation">)</span><span class="token punctuation">,</span>
  <span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token keyword">class</span> <span class="token class-name">AppHome</span> <span class="token keyword">extends</span> <span class="token class-name">StatelessWidget</span> <span class="token punctuation">{</span>
  <span class="token metadata symbol">@override</span>
  Widget <span class="token function">build</span><span class="token punctuation">(</span>BuildContext context<span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token keyword">return</span> <span class="token keyword">new</span> <span class="token class-name">Material</span><span class="token punctuation">(</span>
      child<span class="token punctuation">:</span> <span class="token keyword">new</span> <span class="token class-name">Center</span><span class="token punctuation">(</span>
        child<span class="token punctuation">:</span> <span class="token keyword">new</span> <span class="token class-name">FlatButton</span><span class="token punctuation">(</span>
          onPressed<span class="token punctuation">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token function">debugDumpApp</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
          <span class="token punctuation">}</span><span class="token punctuation">,</span>
          child<span class="token punctuation">:</span> <span class="token keyword">new</span> <span class="token class-name">Text</span><span class="token punctuation">(</span><span class="token string">&apos;Dump App&apos;</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
        <span class="token punctuation">)</span><span class="token punctuation">,</span>
      <span class="token punctuation">)</span><span class="token punctuation">,</span>
    <span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre>
<p>&#x2026;&#x4F1A;&#x8F93;&#x51FA;&#x8FD9;&#x6837;&#x7684;&#x5185;&#x5BB9;&#xFF08;&#x7CBE;&#x786E;&#x7684;&#x7EC6;&#x8282;&#x4F1A;&#x6839;&#x636E;&#x6846;&#x67B6;&#x7684;&#x7248;&#x672C;&#x3001;&#x8BBE;&#x5907;&#x7684;&#x5927;&#x5C0F;&#x7B49;&#x7B49;&#x800C;&#x53D8;&#x5316;&#xFF09;&#xFF1A;</p>
<pre class="language-"><code>I/flutter ( 6559): WidgetsFlutterBinding - CHECKED MODE
I/flutter ( 6559): RenderObjectToWidgetAdapter<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>RenderBox</span><span class="token punctuation">&gt;</span></span>([GlobalObjectKey RenderView(497039273)]; renderObject: RenderView)
I/flutter ( 6559): &#x2514;MaterialApp(state: _MaterialAppState(1009803148))
I/flutter ( 6559):  &#x2514;ScrollConfiguration()
I/flutter ( 6559):   &#x2514;AnimatedTheme(duration: 200ms; state: _AnimatedThemeState(543295893; ticker inactive; ThemeDataTween(ThemeData(Brightness.light Color(0xff2196f3) etc...) &#x2192; null)))
I/flutter ( 6559):    &#x2514;Theme(ThemeData(Brightness.light Color(0xff2196f3) etc...))
I/flutter ( 6559):     &#x2514;WidgetsApp([GlobalObjectKey _MaterialAppState(1009803148)]; state: _WidgetsAppState(552902158))
I/flutter ( 6559):      &#x2514;CheckedModeBanner()
I/flutter ( 6559):       &#x2514;Banner()
I/flutter ( 6559):        &#x2514;CustomPaint(renderObject: RenderCustomPaint)
I/flutter ( 6559):         &#x2514;DefaultTextStyle(inherit: true; color: Color(0xd0ff0000); family: &quot;monospace&quot;; size: 48.0; weight: 900; decoration: double Color(0xffffff00) TextDecoration.underline)
I/flutter ( 6559):          &#x2514;MediaQuery(MediaQueryData(size: Size(411.4, 683.4), devicePixelRatio: 2.625, textScaleFactor: 1.0, padding: EdgeInsets(0.0, 24.0, 0.0, 0.0)))
I/flutter ( 6559):           &#x2514;LocaleQuery(null)
I/flutter ( 6559):            &#x2514;Title(color: Color(0xff2196f3))
I/flutter ( 6559):             &#x2514;Navigator([GlobalObjectKey<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>NavigatorState</span><span class="token punctuation">&gt;</span></span> _WidgetsAppState(552902158)]; state: NavigatorState(240327618; tracking 1 ticker))
I/flutter ( 6559):              &#x2514;Listener(listeners: down, up, cancel; behavior: defer-to-child; renderObject: RenderPointerListener)
I/flutter ( 6559):               &#x2514;AbsorbPointer(renderObject: RenderAbsorbPointer)
I/flutter ( 6559):                &#x2514;Focus([GlobalKey 489139594]; state: _FocusState(739584448))
I/flutter ( 6559):                 &#x2514;Semantics(container: true; renderObject: RenderSemanticsAnnotations)
I/flutter ( 6559):                  &#x2514;_FocusScope(this scope has focus; focused subscope: [GlobalObjectKey MaterialPageRoute<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Null</span><span class="token punctuation">&gt;</span></span>(875520219)])
I/flutter ( 6559):                   &#x2514;Overlay([GlobalKey 199833992]; state: OverlayState(619367313; entries: [OverlayEntry@248818791(opaque: false; maintainState: false), OverlayEntry@837336156(opaque: false; maintainState: true)]))
I/flutter ( 6559):                    &#x2514;_Theatre(renderObject: _RenderTheatre)
I/flutter ( 6559):                     &#x2514;Stack(renderObject: RenderStack)
I/flutter ( 6559):                      &#x251C;_OverlayEntry([GlobalKey 612888877]; state: _OverlayEntryState(739137453))
I/flutter ( 6559):                      &#x2502;&#x2514;IgnorePointer(ignoring: false; renderObject: RenderIgnorePointer)
I/flutter ( 6559):                      &#x2502; &#x2514;ModalBarrier()
I/flutter ( 6559):                      &#x2502;  &#x2514;Semantics(container: true; renderObject: RenderSemanticsAnnotations)
I/flutter ( 6559):                      &#x2502;   &#x2514;GestureDetector()
I/flutter ( 6559):                      &#x2502;    &#x2514;RawGestureDetector(state: RawGestureDetectorState(39068508; gestures: tap; behavior: opaque))
I/flutter ( 6559):                      &#x2502;     &#x2514;_GestureSemantics(renderObject: RenderSemanticsGestureHandler)
I/flutter ( 6559):                      &#x2502;      &#x2514;Listener(listeners: down; behavior: opaque; renderObject: RenderPointerListener)
I/flutter ( 6559):                      &#x2502;       &#x2514;ConstrainedBox(BoxConstraints(biggest); renderObject: RenderConstrainedBox)
I/flutter ( 6559):                      &#x2514;_OverlayEntry([GlobalKey 727622716]; state: _OverlayEntryState(279971240))
I/flutter ( 6559):                       &#x2514;_ModalScope([GlobalKey 816151164]; state: _ModalScopeState(875510645))
I/flutter ( 6559):                        &#x2514;Focus([GlobalObjectKey MaterialPageRoute<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Null</span><span class="token punctuation">&gt;</span></span>(875520219)]; state: _FocusState(331487674))
I/flutter ( 6559):                         &#x2514;Semantics(container: true; renderObject: RenderSemanticsAnnotations)
I/flutter ( 6559):                          &#x2514;_FocusScope(this scope has focus)
I/flutter ( 6559):                           &#x2514;Offstage(offstage: false; renderObject: RenderOffstage)
I/flutter ( 6559):                            &#x2514;IgnorePointer(ignoring: false; renderObject: RenderIgnorePointer)
I/flutter ( 6559):                             &#x2514;_MountainViewPageTransition(animation: AnimationController(&#x23ED; 1.000; paused; for MaterialPageRoute<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Null</span><span class="token punctuation">&gt;</span></span>(/))&#x27A9;ProxyAnimation&#x27A9;Cubic(0.40, 0.00, 0.20, 1.00)&#x27A9;Tween<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Offset</span><span class="token punctuation">&gt;</span></span>(Offset(0.0, 1.0) &#x2192; Offset(0.0, 0.0))&#x27A9;Offset(0.0, 0.0); state: _AnimatedState(552160732))
I/flutter ( 6559):                              &#x2514;SlideTransition(animation: AnimationController(&#x23ED; 1.000; paused; for MaterialPageRoute<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Null</span><span class="token punctuation">&gt;</span></span>(/))&#x27A9;ProxyAnimation&#x27A9;Cubic(0.40, 0.00, 0.20, 1.00)&#x27A9;Tween<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Offset</span><span class="token punctuation">&gt;</span></span>(Offset(0.0, 1.0) &#x2192; Offset(0.0, 0.0))&#x27A9;Offset(0.0, 0.0); state: _AnimatedState(714726495))
I/flutter ( 6559):                               &#x2514;FractionalTranslation(renderObject: RenderFractionalTranslation)
I/flutter ( 6559):                                &#x2514;RepaintBoundary(renderObject: RenderRepaintBoundary)
I/flutter ( 6559):                                 &#x2514;PageStorage([GlobalKey 619728754])
I/flutter ( 6559):                                  &#x2514;_ModalScopeStatus(active)
I/flutter ( 6559):                                   &#x2514;AppHome()
I/flutter ( 6559):                                    &#x2514;Material(MaterialType.canvas; elevation: 0; state: _MaterialState(780114997))
I/flutter ( 6559):                                     &#x2514;AnimatedContainer(duration: 200ms; has background; state: _AnimatedContainerState(616063822; ticker inactive; has background))
I/flutter ( 6559):                                      &#x2514;Container(bg: BoxDecoration())
I/flutter ( 6559):                                       &#x2514;DecoratedBox(renderObject: RenderDecoratedBox)
I/flutter ( 6559):                                        &#x2514;Container(bg: BoxDecoration(backgroundColor: Color(0xfffafafa)))
I/flutter ( 6559):                                         &#x2514;DecoratedBox(renderObject: RenderDecoratedBox)
I/flutter ( 6559):                                          &#x2514;NotificationListener<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>LayoutChangedNotification</span><span class="token punctuation">&gt;</span></span>()
I/flutter ( 6559):                                           &#x2514;_InkFeature([GlobalKey ink renderer]; renderObject: _RenderInkFeatures)
I/flutter ( 6559):                                            &#x2514;AnimatedDefaultTextStyle(duration: 200ms; inherit: false; color: Color(0xdd000000); family: &quot;Roboto&quot;; size: 14.0; weight: 400; baseline: alphabetic; state: _AnimatedDefaultTextStyleState(427742350; ticker inactive))
I/flutter ( 6559):                                             &#x2514;DefaultTextStyle(inherit: false; color: Color(0xdd000000); family: &quot;Roboto&quot;; size: 14.0; weight: 400; baseline: alphabetic)
I/flutter ( 6559):                                              &#x2514;Center(alignment: Alignment.center; renderObject: RenderPositionedBox)
I/flutter ( 6559):                                               &#x2514;FlatButton()
I/flutter ( 6559):                                                &#x2514;MaterialButton(state: _MaterialButtonState(398724090))
I/flutter ( 6559):                                                 &#x2514;ConstrainedBox(BoxConstraints(88.0&lt;=w&lt;=Infinity, h=36.0); renderObject: RenderConstrainedBox relayoutBoundary=up1)
I/flutter ( 6559):                                                  &#x2514;AnimatedDefaultTextStyle(duration: 200ms; inherit: false; color: Color(0xdd000000); family: &quot;Roboto&quot;; size: 14.0; weight: 500; baseline: alphabetic; state: _AnimatedDefaultTextStyleState(315134664; ticker inactive))
I/flutter ( 6559):                                                   &#x2514;DefaultTextStyle(inherit: false; color: Color(0xdd000000); family: &quot;Roboto&quot;; size: 14.0; weight: 500; baseline: alphabetic)
I/flutter ( 6559):                                                    &#x2514;IconTheme(color: Color(0xdd000000))
I/flutter ( 6559):                                                     &#x2514;InkWell(state: _InkResponseState<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>InkResponse</span><span class="token punctuation">&gt;</span></span>(369160267))
I/flutter ( 6559):                                                      &#x2514;GestureDetector()
I/flutter ( 6559):                                                       &#x2514;RawGestureDetector(state: RawGestureDetectorState(175370983; gestures: tap; behavior: opaque))
I/flutter ( 6559):                                                        &#x2514;_GestureSemantics(renderObject: RenderSemanticsGestureHandler relayoutBoundary=up2)
I/flutter ( 6559):                                                         &#x2514;Listener(listeners: down; behavior: opaque; renderObject: RenderPointerListener relayoutBoundary=up3)
I/flutter ( 6559):                                                          &#x2514;Container(padding: EdgeInsets(16.0, 0.0, 16.0, 0.0))
I/flutter ( 6559):                                                           &#x2514;Padding(renderObject: RenderPadding relayoutBoundary=up4)
I/flutter ( 6559):                                                            &#x2514;Center(alignment: Alignment.center; widthFactor: 1.0; renderObject: RenderPositionedBox relayoutBoundary=up5)
I/flutter ( 6559):                                                             &#x2514;Text(&quot;Dump App&quot;)
I/flutter ( 6559):                                                              &#x2514;RichText(renderObject: RenderParagraph relayoutBoundary=up6)
</code></pre><p>&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x201C;&#x6241;&#x5E73;&#x5316;&#x201D;&#x7684;&#x6811;&#xFF0C;&#x663E;&#x793A;&#x4E86;&#x901A;&#x8FC7;&#x5404;&#x79CD;&#x6784;&#x5EFA;&#x51FD;&#x6570;&#x6295;&#x5F71;&#x7684;&#x6240;&#x6709;widget&#xFF08;&#x5982;&#x679C;&#x4F60;&#x5728;widget&#x6811;&#x7684;&#x6839;&#x4E2D;&#x8C03;&#x7528;<code>toStringDeepwidget</code>&#xFF0C;&#x8FD9;&#x662F;&#x4F60;&#x83B7;&#x5F97;&#x7684;&#x6811;&#xFF09;&#x3002; &#x4F60;&#x4F1A;&#x770B;&#x5230;&#x5F88;&#x591A;&#x5728;&#x4F60;&#x7684;&#x5E94;&#x7528;&#x6E90;&#x4EE3;&#x7801;&#x4E2D;&#x6CA1;&#x6709;&#x51FA;&#x73B0;&#x7684;widget&#xFF0C;&#x56E0;&#x4E3A;&#x5B83;&#x4EEC;&#x662F;&#x88AB;&#x6846;&#x67B6;&#x4E2D;widget&#x7684;<code>build()</code>&#x51FD;&#x6570;&#x63D2;&#x5165;&#x7684;&#x3002;&#x4F8B;&#x5982;&#xFF0C;<a href="https://docs.flutter.io/flutter/material/InkFeature-class.html" target="_blank"><code>InkFeature</code></a>&#x662F;Material widget&#x7684;&#x4E00;&#x4E2A;&#x5B9E;&#x73B0;&#x7EC6;&#x8282; &#x3002;</p>
<p>&#x5F53;&#x6309;&#x94AE;&#x4ECE;&#x88AB;&#x6309;&#x4E0B;&#x53D8;&#x4E3A;&#x88AB;&#x91CA;&#x653E;&#x65F6;debugDumpApp()&#x88AB;&#x8C03;&#x7528;&#xFF0C;FlatButton&#x5BF9;&#x8C61;&#x540C;&#x65F6;&#x8C03;&#x7528;<code>setState()</code>&#xFF0C;&#x5E76;&#x5C06;&#x81EA;&#x5DF1;&#x6807;&#x8BB0;&#x4E3A;&quot;dirty&quot;&#x3002; &#x8FD9;&#x5C31;&#x662F;&#x4E3A;&#x4EC0;&#x4E48;&#x5982;&#x679C;&#x4F60;&#x770B;&#x8F6C;&#x50A8;&#xFF0C;&#x4F60;&#x4F1A;&#x770B;&#x5230;&#x7279;&#x5B9A;&#x7684;&#x5BF9;&#x8C61;&#x6807;&#x8BB0;&#x4E3A;&#x201C;dirty&#x201D;&#x3002;&#x60A8;&#x8FD8;&#x53EF;&#x4EE5;&#x67E5;&#x770B;&#x5DF2;&#x6CE8;&#x518C;&#x4E86;&#x54EA;&#x4E9B;&#x624B;&#x52BF;&#x76D1;&#x542C;&#x5668;; &#x5728;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x4E00;&#x4E2A;&#x5355;&#x4E00;&#x7684;GestureDetector&#x88AB;&#x5217;&#x51FA;&#xFF0C;&#x5E76;&#x4E14;&#x76D1;&#x542C;&#x201C;tap&#x201D;&#x624B;&#x52BF;&#xFF08;&#x201C;tap&#x201D;&#x662F;<code>TapGestureDetector</code>&#x7684;<code>toStringShort</code>&#x51FD;&#x6570;&#x8F93;&#x51FA;&#x7684;&#xFF09;</p>
<p>&#x5982;&#x679C;&#x60A8;&#x7F16;&#x5199;&#x81EA;&#x5DF1;&#x7684;widget&#xFF0C;&#x5219;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8986;&#x76D6;<a href="https://docs.flutter.io/flutter/widgets/Widget/debugFillProperties.html" target="_blank"><code>debugFillProperties()</code></a>&#x6765;&#x6DFB;&#x52A0;&#x4FE1;&#x606F;&#x3002; &#x5C06;<a href="https://docs.flutter.io/flutter/foundation/DiagnosticsProperty-class.html" target="_blank">DiagnosticsProperty</a>&#x5BF9;&#x8C61;&#x4F5C;&#x4E3A;&#x65B9;&#x6CD5;&#x53C2;&#x6570;&#xFF0C;&#x5E76;&#x8C03;&#x7528;&#x7236;&#x7C7B;&#x65B9;&#x6CD5;&#x3002; &#x8BE5;&#x51FD;&#x6570;&#x662F;&#x8BE5;<code>toString</code>&#x65B9;&#x6CD5;&#x7528;&#x6765;&#x586B;&#x5145;&#x5C0F;&#x90E8;&#x4EF6;&#x63CF;&#x8FF0;&#x4FE1;&#x606F;&#x7684;&#x3002;</p>
<h3 id="&#x6E32;&#x67D3;&#x5C42;">&#x6E32;&#x67D3;&#x5C42;</h3>
<p>&#x5982;&#x679C;&#x60A8;&#x5C1D;&#x8BD5;&#x8C03;&#x8BD5;&#x5E03;&#x5C40;&#x95EE;&#x9898;&#xFF0C;&#x90A3;&#x4E48;Widgets&#x5C42;&#x7684;&#x6811;&#x53EF;&#x80FD;&#x4E0D;&#x591F;&#x8BE6;&#x7EC6;&#x3002;&#x5728;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8C03;&#x7528;<code>debugDumpRenderTree()</code>&#x8F6C;&#x50A8;&#x6E32;&#x67D3;&#x6811;&#x3002; &#x6B63;&#x5982;<code>debugDumpApp()</code>&#xFF0C;&#x9664;&#x5E03;&#x5C40;&#x6216;&#x7ED8;&#x5236;&#x9636;&#x6BB5;&#x5916;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x968F;&#x65F6;&#x8C03;&#x7528;&#x6B64;&#x51FD;&#x6570;&#x3002;&#x4F5C;&#x4E3A;&#x4E00;&#x822C;&#x89C4;&#x5219;&#xFF0C;&#x4ECE;<a href="https://docs.flutter.io/flutter/scheduler/SchedulerBinding/addPersistentFrameCallback.html" target="_blank">frame &#x56DE;&#x8C03;</a> &#x6216;&#x4E8B;&#x4EF6;&#x5904;&#x7406;&#x5668;&#x4E2D;&#x8C03;&#x7528;&#x5B83;&#x662F;&#x6700;&#x4F73;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#x3002;</p>
<p>&#x8981;&#x8C03;&#x7528;<code>debugDumpRenderTree()</code>&#xFF0C;&#x60A8;&#x9700;&#x8981;&#x6DFB;&#x52A0;<code>import&apos;package:flutter/rendering.dart&apos;;</code>&#x5230;&#x60A8;&#x7684;&#x6E90;&#x6587;&#x4EF6;&#x3002;</p>
<p>&#x4E0A;&#x9762;&#x8FD9;&#x4E2A;&#x5C0F;&#x4F8B;&#x5B50;&#x7684;&#x8F93;&#x51FA;&#x7ED3;&#x679C;&#x5982;&#x4E0B;&#x6240;&#x793A;&#xFF1A;</p>
<pre class="language-"><code>I/flutter ( 6559): RenderView
I/flutter ( 6559):  &#x2502; debug mode enabled - android
I/flutter ( 6559):  &#x2502; window size: Size(1080.0, 1794.0) (in physical pixels)
I/flutter ( 6559):  &#x2502; device pixel ratio: 2.625 (physical pixels per logical pixel)
I/flutter ( 6559):  &#x2502; configuration: Size(411.4, 683.4) at 2.625x (in logical pixels)
I/flutter ( 6559):  &#x2502;
I/flutter ( 6559):  &#x2514;&#x2500;child: RenderCustomPaint
I/flutter ( 6559):    &#x2502; creator: CustomPaint &#x2190; Banner &#x2190; CheckedModeBanner &#x2190;
I/flutter ( 6559):    &#x2502;   WidgetsApp-[GlobalObjectKey _MaterialAppState(1009803148)] &#x2190;
I/flutter ( 6559):    &#x2502;   Theme &#x2190; AnimatedTheme &#x2190; ScrollConfiguration &#x2190; MaterialApp &#x2190;
I/flutter ( 6559):    &#x2502;   [root]
I/flutter ( 6559):    &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):    &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):    &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):    &#x2502;
I/flutter ( 6559):    &#x2514;&#x2500;child: RenderPointerListener
I/flutter ( 6559):      &#x2502; creator: Listener &#x2190; Navigator-[GlobalObjectKey<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>NavigatorState</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):      &#x2502;   _WidgetsAppState(552902158)] &#x2190; Title &#x2190; LocaleQuery &#x2190; MediaQuery
I/flutter ( 6559):      &#x2502;   &#x2190; DefaultTextStyle &#x2190; CustomPaint &#x2190; Banner &#x2190; CheckedModeBanner &#x2190;
I/flutter ( 6559):      &#x2502;   WidgetsApp-[GlobalObjectKey _MaterialAppState(1009803148)] &#x2190;
I/flutter ( 6559):      &#x2502;   Theme &#x2190; AnimatedTheme &#x2190; &#x22EF;
I/flutter ( 6559):      &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):      &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):      &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):      &#x2502; behavior: defer-to-child
I/flutter ( 6559):      &#x2502; listeners: down, up, cancel
I/flutter ( 6559):      &#x2502;
I/flutter ( 6559):      &#x2514;&#x2500;child: RenderAbsorbPointer
I/flutter ( 6559):        &#x2502; creator: AbsorbPointer &#x2190; Listener &#x2190;
I/flutter ( 6559):        &#x2502;   Navigator-[GlobalObjectKey<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>NavigatorState</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):        &#x2502;   _WidgetsAppState(552902158)] &#x2190; Title &#x2190; LocaleQuery &#x2190; MediaQuery
I/flutter ( 6559):        &#x2502;   &#x2190; DefaultTextStyle &#x2190; CustomPaint &#x2190; Banner &#x2190; CheckedModeBanner &#x2190;
I/flutter ( 6559):        &#x2502;   WidgetsApp-[GlobalObjectKey _MaterialAppState(1009803148)] &#x2190;
I/flutter ( 6559):        &#x2502;   Theme &#x2190; &#x22EF;
I/flutter ( 6559):        &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):        &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):        &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):        &#x2502; absorbing: false
I/flutter ( 6559):        &#x2502;
I/flutter ( 6559):        &#x2514;&#x2500;child: RenderSemanticsAnnotations
I/flutter ( 6559):          &#x2502; creator: Semantics &#x2190; Focus-[GlobalKey 489139594] &#x2190; AbsorbPointer
I/flutter ( 6559):          &#x2502;   &#x2190; Listener &#x2190; Navigator-[GlobalObjectKey<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>NavigatorState</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):          &#x2502;   _WidgetsAppState(552902158)] &#x2190; Title &#x2190; LocaleQuery &#x2190; MediaQuery
I/flutter ( 6559):          &#x2502;   &#x2190; DefaultTextStyle &#x2190; CustomPaint &#x2190; Banner &#x2190; CheckedModeBanner &#x2190;
I/flutter ( 6559):          &#x2502;   &#x22EF;
I/flutter ( 6559):          &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):          &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):          &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):          &#x2502;
I/flutter ( 6559):          &#x2514;&#x2500;child: _RenderTheatre
I/flutter ( 6559):            &#x2502; creator: _Theatre &#x2190; Overlay-[GlobalKey 199833992] &#x2190; _FocusScope &#x2190;
I/flutter ( 6559):            &#x2502;   Semantics &#x2190; Focus-[GlobalKey 489139594] &#x2190; AbsorbPointer &#x2190;
I/flutter ( 6559):            &#x2502;   Listener &#x2190; Navigator-[GlobalObjectKey<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>NavigatorState</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x2502;   _WidgetsAppState(552902158)] &#x2190; Title &#x2190; LocaleQuery &#x2190; MediaQuery
I/flutter ( 6559):            &#x2502;   &#x2190; DefaultTextStyle &#x2190; &#x22EF;
I/flutter ( 6559):            &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x2502;
I/flutter ( 6559):            &#x251C;&#x2500;onstage: RenderStack
I/flutter ( 6559):            &#x254E; &#x2502; creator: Stack &#x2190; _Theatre &#x2190; Overlay-[GlobalKey 199833992] &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;   _FocusScope &#x2190; Semantics &#x2190; Focus-[GlobalKey 489139594] &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;   AbsorbPointer &#x2190; Listener &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;   Navigator-[GlobalObjectKey<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>NavigatorState</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E; &#x2502;   _WidgetsAppState(552902158)] &#x2190; Title &#x2190; LocaleQuery &#x2190; MediaQuery
I/flutter ( 6559):            &#x254E; &#x2502;   &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E; &#x2502; parentData: not positioned; offset=Offset(0.0, 0.0)
I/flutter ( 6559):            &#x254E; &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E; &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E; &#x2502;
I/flutter ( 6559):            &#x254E; &#x251C;&#x2500;child 1: RenderIgnorePointer
I/flutter ( 6559):            &#x254E; &#x2502; &#x2502; creator: IgnorePointer &#x2190; _OverlayEntry-[GlobalKey 612888877] &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502; &#x2502;   Stack &#x2190; _Theatre &#x2190; Overlay-[GlobalKey 199833992] &#x2190; _FocusScope
I/flutter ( 6559):            &#x254E; &#x2502; &#x2502;   &#x2190; Semantics &#x2190; Focus-[GlobalKey 489139594] &#x2190; AbsorbPointer &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502; &#x2502;   Listener &#x2190; Navigator-[GlobalObjectKey<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>NavigatorState</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E; &#x2502; &#x2502;   _WidgetsAppState(552902158)] &#x2190; Title &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E; &#x2502; &#x2502; parentData: not positioned; offset=Offset(0.0, 0.0)
I/flutter ( 6559):            &#x254E; &#x2502; &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E; &#x2502; &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E; &#x2502; &#x2502; ignoring: false
I/flutter ( 6559):            &#x254E; &#x2502; &#x2502; ignoringSemantics: implicitly false
I/flutter ( 6559):            &#x254E; &#x2502; &#x2502;
I/flutter ( 6559):            &#x254E; &#x2502; &#x2514;&#x2500;child: RenderSemanticsAnnotations
I/flutter ( 6559):            &#x254E; &#x2502;   &#x2502; creator: Semantics &#x2190; ModalBarrier &#x2190; IgnorePointer &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;   &#x2502;   _OverlayEntry-[GlobalKey 612888877] &#x2190; Stack &#x2190; _Theatre &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;   &#x2502;   Overlay-[GlobalKey 199833992] &#x2190; _FocusScope &#x2190; Semantics &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;   &#x2502;   Focus-[GlobalKey 489139594] &#x2190; AbsorbPointer &#x2190; Listener &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E; &#x2502;   &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E; &#x2502;   &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E; &#x2502;   &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E; &#x2502;   &#x2502;
I/flutter ( 6559):            &#x254E; &#x2502;   &#x2514;&#x2500;child: RenderSemanticsGestureHandler
I/flutter ( 6559):            &#x254E; &#x2502;     &#x2502; creator: _GestureSemantics &#x2190; RawGestureDetector &#x2190; GestureDetector
I/flutter ( 6559):            &#x254E; &#x2502;     &#x2502;   &#x2190; Semantics &#x2190; ModalBarrier &#x2190; IgnorePointer &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;     &#x2502;   _OverlayEntry-[GlobalKey 612888877] &#x2190; Stack &#x2190; _Theatre &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;     &#x2502;   Overlay-[GlobalKey 199833992] &#x2190; _FocusScope &#x2190; Semantics &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E; &#x2502;     &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E; &#x2502;     &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E; &#x2502;     &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E; &#x2502;     &#x2502;
I/flutter ( 6559):            &#x254E; &#x2502;     &#x2514;&#x2500;child: RenderPointerListener
I/flutter ( 6559):            &#x254E; &#x2502;       &#x2502; creator: Listener &#x2190; _GestureSemantics &#x2190; RawGestureDetector &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;       &#x2502;   GestureDetector &#x2190; Semantics &#x2190; ModalBarrier &#x2190; IgnorePointer &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;       &#x2502;   _OverlayEntry-[GlobalKey 612888877] &#x2190; Stack &#x2190; _Theatre &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;       &#x2502;   Overlay-[GlobalKey 199833992] &#x2190; _FocusScope &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E; &#x2502;       &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E; &#x2502;       &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E; &#x2502;       &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E; &#x2502;       &#x2502; behavior: opaque
I/flutter ( 6559):            &#x254E; &#x2502;       &#x2502; listeners: down
I/flutter ( 6559):            &#x254E; &#x2502;       &#x2502;
I/flutter ( 6559):            &#x254E; &#x2502;       &#x2514;&#x2500;child: RenderConstrainedBox
I/flutter ( 6559):            &#x254E; &#x2502;           creator: ConstrainedBox &#x2190; Listener &#x2190; _GestureSemantics &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;             RawGestureDetector &#x2190; GestureDetector &#x2190; Semantics &#x2190; ModalBarrier
I/flutter ( 6559):            &#x254E; &#x2502;             &#x2190; IgnorePointer &#x2190; _OverlayEntry-[GlobalKey 612888877] &#x2190; Stack &#x2190;
I/flutter ( 6559):            &#x254E; &#x2502;             _Theatre &#x2190; Overlay-[GlobalKey 199833992] &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E; &#x2502;           parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E; &#x2502;           constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E; &#x2502;           size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E; &#x2502;           additionalConstraints: BoxConstraints(biggest)
I/flutter ( 6559):            &#x254E; &#x2502;
I/flutter ( 6559):            &#x254E; &#x2514;&#x2500;child 2: RenderSemanticsAnnotations
I/flutter ( 6559):            &#x254E;   &#x2502; creator: Semantics &#x2190; Focus-[GlobalObjectKey
I/flutter ( 6559):            &#x254E;   &#x2502;   MaterialPageRoute<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Null</span><span class="token punctuation">&gt;</span></span>(875520219)] &#x2190; _ModalScope-[GlobalKey
I/flutter ( 6559):            &#x254E;   &#x2502;   816151164] &#x2190; _OverlayEntry-[GlobalKey 727622716] &#x2190; Stack &#x2190;
I/flutter ( 6559):            &#x254E;   &#x2502;   _Theatre &#x2190; Overlay-[GlobalKey 199833992] &#x2190; _FocusScope &#x2190;
I/flutter ( 6559):            &#x254E;   &#x2502;   Semantics &#x2190; Focus-[GlobalKey 489139594] &#x2190; AbsorbPointer &#x2190;
I/flutter ( 6559):            &#x254E;   &#x2502;   Listener &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;   &#x2502; parentData: not positioned; offset=Offset(0.0, 0.0)
I/flutter ( 6559):            &#x254E;   &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E;   &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E;   &#x2502;
I/flutter ( 6559):            &#x254E;   &#x2514;&#x2500;child: RenderOffstage
I/flutter ( 6559):            &#x254E;     &#x2502; creator: Offstage &#x2190; _FocusScope &#x2190; Semantics &#x2190;
I/flutter ( 6559):            &#x254E;     &#x2502;   Focus-[GlobalObjectKey MaterialPageRoute<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Null</span><span class="token punctuation">&gt;</span></span>(875520219)] &#x2190;
I/flutter ( 6559):            &#x254E;     &#x2502;   _ModalScope-[GlobalKey 816151164] &#x2190; _OverlayEntry-[GlobalKey
I/flutter ( 6559):            &#x254E;     &#x2502;   727622716] &#x2190; Stack &#x2190; _Theatre &#x2190; Overlay-[GlobalKey 199833992] &#x2190;
I/flutter ( 6559):            &#x254E;     &#x2502;   _FocusScope &#x2190; Semantics &#x2190; Focus-[GlobalKey 489139594] &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;     &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;     &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E;     &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E;     &#x2502; offstage: false
I/flutter ( 6559):            &#x254E;     &#x2502;
I/flutter ( 6559):            &#x254E;     &#x2514;&#x2500;child: RenderIgnorePointer
I/flutter ( 6559):            &#x254E;       &#x2502; creator: IgnorePointer &#x2190; Offstage &#x2190; _FocusScope &#x2190; Semantics &#x2190;
I/flutter ( 6559):            &#x254E;       &#x2502;   Focus-[GlobalObjectKey MaterialPageRoute<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Null</span><span class="token punctuation">&gt;</span></span>(875520219)] &#x2190;
I/flutter ( 6559):            &#x254E;       &#x2502;   _ModalScope-[GlobalKey 816151164] &#x2190; _OverlayEntry-[GlobalKey
I/flutter ( 6559):            &#x254E;       &#x2502;   727622716] &#x2190; Stack &#x2190; _Theatre &#x2190; Overlay-[GlobalKey 199833992] &#x2190;
I/flutter ( 6559):            &#x254E;       &#x2502;   _FocusScope &#x2190; Semantics &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;       &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;       &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E;       &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E;       &#x2502; ignoring: false
I/flutter ( 6559):            &#x254E;       &#x2502; ignoringSemantics: implicitly false
I/flutter ( 6559):            &#x254E;       &#x2502;
I/flutter ( 6559):            &#x254E;       &#x2514;&#x2500;child: RenderFractionalTranslation
I/flutter ( 6559):            &#x254E;         &#x2502; creator: FractionalTranslation &#x2190; SlideTransition &#x2190;
I/flutter ( 6559):            &#x254E;         &#x2502;   _MountainViewPageTransition &#x2190; IgnorePointer &#x2190; Offstage &#x2190;
I/flutter ( 6559):            &#x254E;         &#x2502;   _FocusScope &#x2190; Semantics &#x2190; Focus-[GlobalObjectKey
I/flutter ( 6559):            &#x254E;         &#x2502;   MaterialPageRoute<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Null</span><span class="token punctuation">&gt;</span></span>(875520219)] &#x2190; _ModalScope-[GlobalKey
I/flutter ( 6559):            &#x254E;         &#x2502;   816151164] &#x2190; _OverlayEntry-[GlobalKey 727622716] &#x2190; Stack &#x2190;
I/flutter ( 6559):            &#x254E;         &#x2502;   _Theatre &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;         &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;         &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E;         &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E;         &#x2502; translation: Offset(0.0, 0.0)
I/flutter ( 6559):            &#x254E;         &#x2502; transformHitTests: true
I/flutter ( 6559):            &#x254E;         &#x2502;
I/flutter ( 6559):            &#x254E;         &#x2514;&#x2500;child: RenderRepaintBoundary
I/flutter ( 6559):            &#x254E;           &#x2502; creator: RepaintBoundary &#x2190; FractionalTranslation &#x2190;
I/flutter ( 6559):            &#x254E;           &#x2502;   SlideTransition &#x2190; _MountainViewPageTransition &#x2190; IgnorePointer &#x2190;
I/flutter ( 6559):            &#x254E;           &#x2502;   Offstage &#x2190; _FocusScope &#x2190; Semantics &#x2190; Focus-[GlobalObjectKey
I/flutter ( 6559):            &#x254E;           &#x2502;   MaterialPageRoute<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Null</span><span class="token punctuation">&gt;</span></span>(875520219)] &#x2190; _ModalScope-[GlobalKey
I/flutter ( 6559):            &#x254E;           &#x2502;   816151164] &#x2190; _OverlayEntry-[GlobalKey 727622716] &#x2190; Stack &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;           &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;           &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E;           &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E;           &#x2502; metrics: 83.3% useful (1 bad vs 5 good)
I/flutter ( 6559):            &#x254E;           &#x2502; diagnosis: this is a useful repaint boundary and should be kept
I/flutter ( 6559):            &#x254E;           &#x2502;
I/flutter ( 6559):            &#x254E;           &#x2514;&#x2500;child: RenderDecoratedBox
I/flutter ( 6559):            &#x254E;             &#x2502; creator: DecoratedBox &#x2190; Container &#x2190; AnimatedContainer &#x2190; Material
I/flutter ( 6559):            &#x254E;             &#x2502;   &#x2190; AppHome &#x2190; _ModalScopeStatus &#x2190; PageStorage-[GlobalKey
I/flutter ( 6559):            &#x254E;             &#x2502;   619728754] &#x2190; RepaintBoundary &#x2190; FractionalTranslation &#x2190;
I/flutter ( 6559):            &#x254E;             &#x2502;   SlideTransition &#x2190; _MountainViewPageTransition &#x2190; IgnorePointer &#x2190;
I/flutter ( 6559):            &#x254E;             &#x2502;   &#x22EF;
I/flutter ( 6559):            &#x254E;             &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;             &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E;             &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E;             &#x2502; decoration:
I/flutter ( 6559):            &#x254E;             &#x2502;   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>no</span> <span class="token attr-name">decorations</span> <span class="token attr-name">specified</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;             &#x2502; configuration: ImageConfiguration(bundle:
I/flutter ( 6559):            &#x254E;             &#x2502;   PlatformAssetBundle@367106502(), devicePixelRatio: 2.625,
I/flutter ( 6559):            &#x254E;             &#x2502;   platform: android)
I/flutter ( 6559):            &#x254E;             &#x2502;
I/flutter ( 6559):            &#x254E;             &#x2514;&#x2500;child: RenderDecoratedBox
I/flutter ( 6559):            &#x254E;               &#x2502; creator: DecoratedBox &#x2190; Container &#x2190; DecoratedBox &#x2190; Container &#x2190;
I/flutter ( 6559):            &#x254E;               &#x2502;   AnimatedContainer &#x2190; Material &#x2190; AppHome &#x2190; _ModalScopeStatus &#x2190;
I/flutter ( 6559):            &#x254E;               &#x2502;   PageStorage-[GlobalKey 619728754] &#x2190; RepaintBoundary &#x2190;
I/flutter ( 6559):            &#x254E;               &#x2502;   FractionalTranslation &#x2190; SlideTransition &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;               &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;               &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E;               &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E;               &#x2502; decoration:
I/flutter ( 6559):            &#x254E;               &#x2502;   backgroundColor: Color(0xfffafafa)
I/flutter ( 6559):            &#x254E;               &#x2502; configuration: ImageConfiguration(bundle:
I/flutter ( 6559):            &#x254E;               &#x2502;   PlatformAssetBundle@367106502(), devicePixelRatio: 2.625,
I/flutter ( 6559):            &#x254E;               &#x2502;   platform: android)
I/flutter ( 6559):            &#x254E;               &#x2502;
I/flutter ( 6559):            &#x254E;               &#x2514;&#x2500;child: _RenderInkFeatures
I/flutter ( 6559):            &#x254E;                 &#x2502; creator: _InkFeature-[GlobalKey ink renderer] &#x2190;
I/flutter ( 6559):            &#x254E;                 &#x2502;   NotificationListener<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>LayoutChangedNotification</span><span class="token punctuation">&gt;</span></span> &#x2190; DecoratedBox
I/flutter ( 6559):            &#x254E;                 &#x2502;   &#x2190; Container &#x2190; DecoratedBox &#x2190; Container &#x2190; AnimatedContainer &#x2190;
I/flutter ( 6559):            &#x254E;                 &#x2502;   Material &#x2190; AppHome &#x2190; _ModalScopeStatus &#x2190; PageStorage-[GlobalKey
I/flutter ( 6559):            &#x254E;                 &#x2502;   619728754] &#x2190; RepaintBoundary &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;                 &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;                 &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E;                 &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E;                 &#x2502;
I/flutter ( 6559):            &#x254E;                 &#x2514;&#x2500;child: RenderPositionedBox
I/flutter ( 6559):            &#x254E;                   &#x2502; creator: Center &#x2190; DefaultTextStyle &#x2190; AnimatedDefaultTextStyle &#x2190;
I/flutter ( 6559):            &#x254E;                   &#x2502;   _InkFeature-[GlobalKey ink renderer] &#x2190;
I/flutter ( 6559):            &#x254E;                   &#x2502;   NotificationListener<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>LayoutChangedNotification</span><span class="token punctuation">&gt;</span></span> &#x2190; DecoratedBox
I/flutter ( 6559):            &#x254E;                   &#x2502;   &#x2190; Container &#x2190; DecoratedBox &#x2190; Container &#x2190; AnimatedContainer &#x2190;
I/flutter ( 6559):            &#x254E;                   &#x2502;   Material &#x2190; AppHome &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;                   &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;                   &#x2502; constraints: BoxConstraints(w=411.4, h=683.4)
I/flutter ( 6559):            &#x254E;                   &#x2502; size: Size(411.4, 683.4)
I/flutter ( 6559):            &#x254E;                   &#x2502; alignment: Alignment.center
I/flutter ( 6559):            &#x254E;                   &#x2502; widthFactor: expand
I/flutter ( 6559):            &#x254E;                   &#x2502; heightFactor: expand
I/flutter ( 6559):            &#x254E;                   &#x2502;
I/flutter ( 6559):            &#x254E;                   &#x2514;&#x2500;child: RenderConstrainedBox relayoutBoundary=up1
I/flutter ( 6559):            &#x254E;                     &#x2502; creator: ConstrainedBox &#x2190; MaterialButton &#x2190; FlatButton &#x2190; Center &#x2190;
I/flutter ( 6559):            &#x254E;                     &#x2502;   DefaultTextStyle &#x2190; AnimatedDefaultTextStyle &#x2190;
I/flutter ( 6559):            &#x254E;                     &#x2502;   _InkFeature-[GlobalKey ink renderer] &#x2190;
I/flutter ( 6559):            &#x254E;                     &#x2502;   NotificationListener<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>LayoutChangedNotification</span><span class="token punctuation">&gt;</span></span> &#x2190; DecoratedBox
I/flutter ( 6559):            &#x254E;                     &#x2502;   &#x2190; Container &#x2190; DecoratedBox &#x2190; Container &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;                     &#x2502; parentData: offset=Offset(156.7, 323.7)
I/flutter ( 6559):            &#x254E;                     &#x2502; constraints: BoxConstraints(0.0&lt;=w&lt;=411.4, 0.0&lt;=h&lt;=683.4)
I/flutter ( 6559):            &#x254E;                     &#x2502; size: Size(98.0, 36.0)
I/flutter ( 6559):            &#x254E;                     &#x2502; additionalConstraints: BoxConstraints(88.0&lt;=w&lt;=Infinity, h=36.0)
I/flutter ( 6559):            &#x254E;                     &#x2502;
I/flutter ( 6559):            &#x254E;                     &#x2514;&#x2500;child: RenderSemanticsGestureHandler relayoutBoundary=up2
I/flutter ( 6559):            &#x254E;                       &#x2502; creator: _GestureSemantics &#x2190; RawGestureDetector &#x2190; GestureDetector
I/flutter ( 6559):            &#x254E;                       &#x2502;   &#x2190; InkWell &#x2190; IconTheme &#x2190; DefaultTextStyle &#x2190;
I/flutter ( 6559):            &#x254E;                       &#x2502;   AnimatedDefaultTextStyle &#x2190; ConstrainedBox &#x2190; MaterialButton &#x2190;
I/flutter ( 6559):            &#x254E;                       &#x2502;   FlatButton &#x2190; Center &#x2190; DefaultTextStyle &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;                       &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;                       &#x2502; constraints: BoxConstraints(88.0&lt;=w&lt;=411.4, h=36.0)
I/flutter ( 6559):            &#x254E;                       &#x2502; size: Size(98.0, 36.0)
I/flutter ( 6559):            &#x254E;                       &#x2502;
I/flutter ( 6559):            &#x254E;                       &#x2514;&#x2500;child: RenderPointerListener relayoutBoundary=up3
I/flutter ( 6559):            &#x254E;                         &#x2502; creator: Listener &#x2190; _GestureSemantics &#x2190; RawGestureDetector &#x2190;
I/flutter ( 6559):            &#x254E;                         &#x2502;   GestureDetector &#x2190; InkWell &#x2190; IconTheme &#x2190; DefaultTextStyle &#x2190;
I/flutter ( 6559):            &#x254E;                         &#x2502;   AnimatedDefaultTextStyle &#x2190; ConstrainedBox &#x2190; MaterialButton &#x2190;
I/flutter ( 6559):            &#x254E;                         &#x2502;   FlatButton &#x2190; Center &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;                         &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;                         &#x2502; constraints: BoxConstraints(88.0&lt;=w&lt;=411.4, h=36.0)
I/flutter ( 6559):            &#x254E;                         &#x2502; size: Size(98.0, 36.0)
I/flutter ( 6559):            &#x254E;                         &#x2502; behavior: opaque
I/flutter ( 6559):            &#x254E;                         &#x2502; listeners: down
I/flutter ( 6559):            &#x254E;                         &#x2502;
I/flutter ( 6559):            &#x254E;                         &#x2514;&#x2500;child: RenderPadding relayoutBoundary=up4
I/flutter ( 6559):            &#x254E;                           &#x2502; creator: Padding &#x2190; Container &#x2190; Listener &#x2190; _GestureSemantics &#x2190;
I/flutter ( 6559):            &#x254E;                           &#x2502;   RawGestureDetector &#x2190; GestureDetector &#x2190; InkWell &#x2190; IconTheme &#x2190;
I/flutter ( 6559):            &#x254E;                           &#x2502;   DefaultTextStyle &#x2190; AnimatedDefaultTextStyle &#x2190; ConstrainedBox &#x2190;
I/flutter ( 6559):            &#x254E;                           &#x2502;   MaterialButton &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;                           &#x2502; parentData: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>none</span><span class="token punctuation">&gt;</span></span>
I/flutter ( 6559):            &#x254E;                           &#x2502; constraints: BoxConstraints(88.0&lt;=w&lt;=411.4, h=36.0)
I/flutter ( 6559):            &#x254E;                           &#x2502; size: Size(98.0, 36.0)
I/flutter ( 6559):            &#x254E;                           &#x2502; padding: EdgeInsets(16.0, 0.0, 16.0, 0.0)
I/flutter ( 6559):            &#x254E;                           &#x2502;
I/flutter ( 6559):            &#x254E;                           &#x2514;&#x2500;child: RenderPositionedBox relayoutBoundary=up5
I/flutter ( 6559):            &#x254E;                             &#x2502; creator: Center &#x2190; Padding &#x2190; Container &#x2190; Listener &#x2190;
I/flutter ( 6559):            &#x254E;                             &#x2502;   _GestureSemantics &#x2190; RawGestureDetector &#x2190; GestureDetector &#x2190;
I/flutter ( 6559):            &#x254E;                             &#x2502;   InkWell &#x2190; IconTheme &#x2190; DefaultTextStyle &#x2190;
I/flutter ( 6559):            &#x254E;                             &#x2502;   AnimatedDefaultTextStyle &#x2190; ConstrainedBox &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;                             &#x2502; parentData: offset=Offset(16.0, 0.0)
I/flutter ( 6559):            &#x254E;                             &#x2502; constraints: BoxConstraints(56.0&lt;=w&lt;=379.4, h=36.0)
I/flutter ( 6559):            &#x254E;                             &#x2502; size: Size(66.0, 36.0)
I/flutter ( 6559):            &#x254E;                             &#x2502; alignment: Alignment.center
I/flutter ( 6559):            &#x254E;                             &#x2502; widthFactor: 1.0
I/flutter ( 6559):            &#x254E;                             &#x2502; heightFactor: expand
I/flutter ( 6559):            &#x254E;                             &#x2502;
I/flutter ( 6559):            &#x254E;                             &#x2514;&#x2500;child: RenderParagraph relayoutBoundary=up6
I/flutter ( 6559):            &#x254E;                               &#x2502; creator: RichText &#x2190; Text &#x2190; Center &#x2190; Padding &#x2190; Container &#x2190;
I/flutter ( 6559):            &#x254E;                               &#x2502;   Listener &#x2190; _GestureSemantics &#x2190; RawGestureDetector &#x2190;
I/flutter ( 6559):            &#x254E;                               &#x2502;   GestureDetector &#x2190; InkWell &#x2190; IconTheme &#x2190; DefaultTextStyle &#x2190; &#x22EF;
I/flutter ( 6559):            &#x254E;                               &#x2502; parentData: offset=Offset(0.0, 10.0)
I/flutter ( 6559):            &#x254E;                               &#x2502; constraints: BoxConstraints(0.0&lt;=w&lt;=379.4, 0.0&lt;=h&lt;=36.0)
I/flutter ( 6559):            &#x254E;                               &#x2502; size: Size(66.0, 16.0)
I/flutter ( 6559):            &#x254E;                               &#x2558;&#x2550;&#x2566;&#x2550;&#x2550; text &#x2550;&#x2550;&#x2550;
I/flutter ( 6559):            &#x254E;                                 &#x2551; TextSpan:
I/flutter ( 6559):            &#x254E;                                 &#x2551;   inherit: false
I/flutter ( 6559):            &#x254E;                                 &#x2551;   color: Color(0xdd000000)
I/flutter ( 6559):            &#x254E;                                 &#x2551;   family: &quot;Roboto&quot;
I/flutter ( 6559):            &#x254E;                                 &#x2551;   size: 14.0
I/flutter ( 6559):            &#x254E;                                 &#x2551;   weight: 500
I/flutter ( 6559):            &#x254E;                                 &#x2551;   baseline: alphabetic
I/flutter ( 6559):            &#x254E;                                 &#x2551;   &quot;Dump App&quot;
I/flutter ( 6559):            &#x254E;                                 &#x255A;&#x2550;&#x2550;&#x2550;&#x2550;&#x2550;&#x2550;&#x2550;&#x2550;&#x2550;&#x2550;&#x2550;
I/flutter ( 6559):            &#x254E;
I/flutter ( 6559):            &#x2514;&#x254C;no offstage children
</code></pre><p>&#x8FD9;&#x662F;&#x6839;<code>RenderObject</code>&#x5BF9;&#x8C61;&#x7684;<code>toStringDeep</code>&#x51FD;&#x6570;&#x7684;&#x8F93;&#x51FA;&#x3002;</p>
<p>&#x5F53;&#x8C03;&#x8BD5;&#x5E03;&#x5C40;&#x95EE;&#x9898;&#x65F6;&#xFF0C;&#x5173;&#x952E;&#x8981;&#x770B;&#x7684;&#x662F;<code>size</code>&#x548C;<code>constraints</code>&#x5B57;&#x6BB5;&#x3002;&#x7EA6;&#x675F;&#x6CBF;&#x7740;&#x6811;&#x5411;&#x4E0B;&#x4F20;&#x9012;&#xFF0C;&#x5C3A;&#x5BF8;&#x5411;&#x4E0A;&#x4F20;&#x9012;&#x3002;</p>
<p>&#x4F8B;&#x5982;&#xFF0C;&#x5728;&#x4E0A;&#x9762;&#x7684;&#x8F6C;&#x50A8;&#x4E2D;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x7A97;&#x53E3;&#x5927;&#x5C0F;&#xFF0C;Size(411.4, 683.4)&#xFF0C;&#x5B83;&#x7528;&#x4E8E;&#x5F3A;&#x5236;<a href="https://docs.flutter.io/flutter/rendering/RenderPositionedBox-class.html" target="_blank"><code>RenderPositionedBox</code></a>&#x4E0B;&#x7684;&#x6240;&#x6709;&#x6E32;&#x67D3;&#x6846;&#x5230;&#x5C4F;&#x5E55;&#x7684;&#x5927;&#x5C0F;&#xFF0C; &#x7EA6;&#x675F;&#x6761;&#x4EF6;&#x4E3A; BoxConstraints(w=411.4, h=683.4)&#x3002;&#x4ECE;<code>RenderPositionedBox</code>&#x7684;&#x8F6C;&#x50A8;&#x4E2D;&#x770B;&#x5230;&#x662F;&#x7531;Center widget&#x521B;&#x5EFA;&#x7684;&#xFF08;&#x5982;creator&#x5B57;&#x6BB5;&#x6240;&#x63CF;&#x8FF0;&#x7684;&#xFF09;&#xFF0C; &#x8BBE;&#x7F6E;&#x5176;&#x5B69;&#x5B50;&#x7684;&#x7EA6;&#x675F;&#x4E3A;&#xFF1A;BoxConstraints(0.0&lt;=w&lt;=411.4,0.0&lt;=h&lt;=683.4)&#x3002;&#x4E00;&#x4E2A;&#x5B50;widget RenderPadding&#x8FDB;&#x4E00;&#x6B65;&#x63D2;&#x5165;&#x8FD9;&#x4E9B;&#x7EA6;&#x675F;&#x4EE5;&#x6DFB;&#x52A0;&#x586B;&#x5145;&#x7A7A;&#x95F4;&#xFF0C;padding&#x503C;&#x4E3A;EdgeInsets(16.0, 0.0, 16.0, 0.0)&#xFF0C;&#x56E0;&#x6B64;RenderConstrainedBox&#x5177;&#x6709;&#x7EA6;&#x675F;BoxConstraints(0.0&lt;=w&lt;=395.4, 0.0&lt;=h&lt;=667.4)&#x3002;&#x8BE5;creator&#x5B57;&#x6BB5;&#x544A;&#x8BC9;&#x6211;&#x4EEC;&#x7684;&#x8FD9;&#x4E2A;&#x5BF9;&#x8C61;&#x53EF;&#x80FD;&#x662F;&#x5176;<a href="https://docs.flutter.io/flutter/material/FlatButton-class.html" target="_blank"><code>FlatButton</code></a>&#x5B9A;&#x4E49;&#x7684;&#x4E00;&#x90E8;&#x5206;&#xFF0C;&#x5B83;&#x5728;&#x5176;&#x5185;&#x5BB9;&#x4E0A;&#x8BBE;&#x7F6E;&#x6700;&#x5C0F;&#x5BBD;&#x5EA6;&#x4E3A;88&#x50CF;&#x7D20;&#xFF0C;&#x5E76;&#x4E14;&#x8BBE;&#x7F6E;&#x9AD8;&#x5EA6;&#x4E3A;36.0&#x50CF;&#x7D20;&#xFF08;&#x8FD9;&#x662F;Material Design&#x8BBE;&#x8BA1;&#x89C4;&#x8303;&#x4E2D;<code>FlatButton</code>&#x7C7B;&#x7684;&#x5C3A;&#x5BF8;&#x6807;&#x51C6;&#xFF09;&#x3002;</p>
<p>&#x6700;&#x5185;&#x90E8;RenderPositionedBox&#x518D;&#x6B21;&#x677E;&#x5F00;&#x7EA6;&#x675F;&#xFF0C;&#x8FD9;&#x6B21;&#x662F;&#x5C06;&#x6309;&#x94AE;&#x4E2D;&#x7684;&#x6587;&#x672C;&#x5C45;&#x4E2D;&#x3002; &#x5728;<a href="https://docs.flutter.io/flutter/rendering/RenderParagraph-class.html" target="_blank"><code>RenderParagraph</code></a>&#x4E2D;&#x57FA;&#x4E8E;&#x5B83;&#x7684;&#x5185;&#x5BB9;&#x6765;&#x51B3;&#x5B9A;&#x5176;&#x5927;&#x5C0F;&#x3002; &#x5982;&#x679C;&#x60A8;&#x73B0;&#x5728;&#x6309;&#x7167;size&#x94FE;&#x7EE7;&#x7EED;&#x5F80;&#x4E0B;&#x67E5;&#x770B;&#xFF0C;&#x60A8;&#x4F1A;&#x770B;&#x5230;&#x6587;&#x672C;&#x7684;&#x5927;&#x5C0F;&#x662F;&#x5982;&#x4F55;&#x5F71;&#x54CD;&#x5176;&#x6309;&#x94AE;&#x7684;&#x6846;&#x7684;&#x5BBD;&#x5EA6;&#x7684;&#xFF0C;&#x5B83;&#x4EEC;&#x90FD;&#x662F;&#x6839;&#x636E;&#x5B69;&#x5B50;&#x7684;&#x5C3A;&#x5BF8;&#x81EA;&#x884C;&#x8C03;&#x6574;&#x5927;&#x5C0F;&#x3002;</p>
<p>&#x53E6;&#x4E00;&#x79CD;&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;&#x6BCF;&#x4E2A;&#x76D2;&#x5B50;&#x63CF;&#x8FF0;&#x7684;&#x201D;relayoutSubtreeRoot&#x201D;&#x90E8;&#x5206;&#xFF0C;&#x5B83;&#x544A;&#x8BC9;&#x4F60;&#x6709;&#x591A;&#x5C11;&#x7956;&#x5148;&#x4EE5;&#x67D0;&#x79CD;&#x65B9;&#x5F0F;&#x4F9D;&#x8D56;&#x4E8E;&#x8FD9;&#x4E2A;&#x5143;&#x7D20;&#x7684;&#x5927;&#x5C0F;&#x3002; &#x56E0;&#x6B64;&#xFF0C;<code>RenderParagraph</code>&#x6709;&#x4E00;&#x4E2A;<code>relayoutSubtreeRoot=up8</code>&#xFF0C;&#x8FD9;&#x610F;&#x5473;&#x7740;&#x5F53;&#x5B83;<code>RenderParagraph</code>&#x88AB;&#x6807;&#x53CA;&#x4E3A;&#x201D;dirty&#x201D;&#x65F6;&#xFF0C;&#x5B83;&#x7684;&#x516B;&#x4E2A;&#x7956;&#x5148;&#x4E5F;&#x5FC5;&#x987B;&#x88AB;&#x6807;&#x8BB0;&#x4E3A;&#x201D;dirty&#x201D;&#xFF0C;&#x56E0;&#x4E3A;&#x5B83;&#x4EEC;&#x53EF;&#x80FD;&#x53D7;&#x5230;&#x65B0;&#x5C3A;&#x5BF8;&#x7684;&#x5F71;&#x54CD;&#x3002;</p>
<p>&#x5982;&#x679C;&#x60A8;&#x7F16;&#x5199;&#x81EA;&#x5DF1;&#x7684;&#x6E32;&#x67D3;&#x5BF9;&#x8C61;&#xFF0C;&#x5219;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8986;&#x76D6;<a href="https://docs.flutter.io/flutter/rendering/Layer/debugFillProperties.html" target="_blank"><code>debugFillProperties()</code></a>&#x5C06;&#x4FE1;&#x606F;&#x6DFB;&#x52A0;&#x5230;&#x8F6C;&#x50A8;&#x3002; &#x5C06;<a href="https://docs.flutter.io/flutter/foundation/DiagnosticsProperty-class.html" target="_blank">DiagnosticsProperty</a>&#x5BF9;&#x8C61;&#x4F5C;&#x4E3A;&#x65B9;&#x6CD5;&#x7684;&#x53C2;&#x6570;&#xFF0C;&#x5E76;&#x8C03;&#x7528;&#x7236;&#x7C7B;&#x65B9;&#x6CD5;&#x3002;</p>
<h3 id="&#x5C42;">&#x5C42;</h3>
<p>&#x5982;&#x679C;&#x60A8;&#x5C1D;&#x8BD5;&#x8C03;&#x8BD5;&#x5408;&#x6210;&#x95EE;&#x9898;&#xFF0C;&#x5219;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<a href="https://docs.flutter.io/flutter/rendering/debugDumpLayerTree.html" target="_blank"><code>debugDumpLayerTree()</code></a>&#x3002;&#x5BF9;&#x4E8E;&#x4E0A;&#x9762;&#x7684;&#x4F8B;&#x5B50;&#xFF0C;&#x5B83;&#x4F1A;&#x8F93;&#x51FA;&#xFF1A;</p>
<pre class="language-"><code>I/flutter : TransformLayer
I/flutter :  &#x2502; creator: [root]
I/flutter :  &#x2502; offset: Offset(0.0, 0.0)
I/flutter :  &#x2502; transform:
I/flutter :  &#x2502;   [0] 3.5,0.0,0.0,0.0
I/flutter :  &#x2502;   [1] 0.0,3.5,0.0,0.0
I/flutter :  &#x2502;   [2] 0.0,0.0,1.0,0.0
I/flutter :  &#x2502;   [3] 0.0,0.0,0.0,1.0
I/flutter :  &#x2502;
I/flutter :  &#x251C;&#x2500;child 1: OffsetLayer
I/flutter :  &#x2502; &#x2502; creator: RepaintBoundary &#x2190; _FocusScope &#x2190; Semantics &#x2190; Focus-[GlobalObjectKey MaterialPageRoute(560156430)] &#x2190; _ModalScope-[GlobalKey 328026813] &#x2190; _OverlayEntry-[GlobalKey 388965355] &#x2190; Stack &#x2190; Overlay-[GlobalKey 625702218] &#x2190; Navigator-[GlobalObjectKey _MaterialAppState(859106034)] &#x2190; Title &#x2190; &#x22EF;
I/flutter :  &#x2502; &#x2502; offset: Offset(0.0, 0.0)
I/flutter :  &#x2502; &#x2502;
I/flutter :  &#x2502; &#x2514;&#x2500;child 1: PictureLayer
I/flutter :  &#x2502;
I/flutter :  &#x2514;&#x2500;child 2: PictureLayer
</code></pre><p>&#x8FD9;&#x662F;&#x6839;<code>Layer</code>&#x7684;<code>toStringDeep</code>&#x8F93;&#x51FA;&#x7684;&#x3002;</p>
<p>&#x6839;&#x90E8;&#x7684;&#x53D8;&#x6362;&#x662F;&#x5E94;&#x7528;&#x8BBE;&#x5907;&#x50CF;&#x7D20;&#x6BD4;&#x7684;&#x53D8;&#x6362;; &#x5728;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x6BCF;&#x4E2A;&#x903B;&#x8F91;&#x50CF;&#x7D20;&#x4EE3;&#x8868;3.5&#x4E2A;&#x8BBE;&#x5907;&#x50CF;&#x7D20;&#x3002;</p>
<p><code>RepaintBoundary</code> widget&#x5728;&#x6E32;&#x67D3;&#x6811;&#x7684;&#x5C42;&#x4E2D;&#x521B;&#x5EFA;&#x4E86;&#x4E00;&#x4E2A;<code>RenderRepaintBoundary</code>&#x3002;&#x8FD9;&#x7528;&#x4E8E;&#x51CF;&#x5C11;&#x9700;&#x8981;&#x91CD;&#x7ED8;&#x7684;&#x9700;&#x6C42;&#x91CF;&#x3002;</p>
<h3 id="&#x8BED;&#x4E49;">&#x8BED;&#x4E49;</h3>
<p>&#x60A8;&#x8FD8;&#x53EF;&#x4EE5;&#x8C03;&#x7528;<a href="https://docs.flutter.io/flutter/rendering/debugDumpSemanticsTree.html" target="_blank"><code>debugDumpSemanticsTree()</code></a>&#x83B7;&#x53D6;&#x8BED;&#x4E49;&#x6811;&#xFF08;&#x5448;&#x73B0;&#x7ED9;&#x7CFB;&#x7EDF;&#x53EF;&#x8BBF;&#x95EE;&#x6027;API&#x7684;&#x6811;&#xFF09;&#x7684;&#x8F6C;&#x50A8;&#x3002; &#x8981;&#x4F7F;&#x7528;&#x6B64;&#x529F;&#x80FD;&#xFF0C;&#x5FC5;&#x987B;&#x9996;&#x5148;&#x542F;&#x7528;&#x8F85;&#x52A9;&#x529F;&#x80FD;&#xFF0C;&#x4F8B;&#x5982;&#x542F;&#x7528;&#x7CFB;&#x7EDF;&#x8F85;&#x52A9;&#x5DE5;&#x5177;&#x6216;<code>SemanticsDebugger</code> &#xFF08;&#x4E0B;&#x9762;&#x8BA8;&#x8BBA;&#xFF09;&#x3002;</p>
<p>&#x5BF9;&#x4E8E;&#x4E0A;&#x9762;&#x7684;&#x4F8B;&#x5B50;&#xFF0C;&#x5B83;&#x4F1A;&#x8F93;&#x51FA;:</p>
<pre class="language-"><code>I/flutter : SemanticsNode(0; Rect.fromLTRB(0.0, 0.0, 411.4, 683.4))
I/flutter :  &#x251C;SemanticsNode(1; Rect.fromLTRB(0.0, 0.0, 411.4, 683.4))
I/flutter :  &#x2502; &#x2514;SemanticsNode(2; Rect.fromLTRB(0.0, 0.0, 411.4, 683.4); canBeTapped)
I/flutter :  &#x2514;SemanticsNode(3; Rect.fromLTRB(0.0, 0.0, 411.4, 683.4))
I/flutter :    &#x2514;SemanticsNode(4; Rect.fromLTRB(0.0, 0.0, 82.0, 36.0); canBeTapped; &quot;Dump App&quot;)
</code></pre><h3 id="&#x8C03;&#x5EA6;">&#x8C03;&#x5EA6;</h3>
<p>&#x8981;&#x627E;&#x51FA;&#x76F8;&#x5BF9;&#x4E8E;&#x5E27;&#x7684;&#x5F00;&#x59CB;/&#x7ED3;&#x675F;&#x4E8B;&#x4EF6;&#x53D1;&#x751F;&#x7684;&#x4F4D;&#x7F6E;&#xFF0C;&#x53EF;&#x4EE5;&#x5207;&#x6362;<a href="https://docs.flutter.io/flutter/scheduler/debugPrintBeginFrameBanner.html" target="_blank"><code>debugPrintBeginFrameBanner</code></a>&#x548C;<a href="https://docs.flutter.io/flutter/scheduler/debugPrintEndFrameBanner.html" target="_blank"><code>debugPrintEndFrameBanner</code></a>&#x5E03;&#x5C14;&#x503C;&#x4EE5;&#x5C06;&#x5E27;&#x7684;&#x5F00;&#x59CB;&#x548C;&#x7ED3;&#x675F;&#x6253;&#x5370;&#x5230;&#x63A7;&#x5236;&#x53F0;&#x3002;</p>
<p>&#x4F8B;&#x5982;:</p>
<pre class="language-"><code>I/flutter : &#x2584;&#x2584;&#x2584;&#x2584;&#x2584;&#x2584;&#x2584;&#x2584; Frame 12         30s 437.086ms &#x2584;&#x2584;&#x2584;&#x2584;&#x2584;&#x2584;&#x2584;&#x2584;
I/flutter : Debug print: Am I performing this work more than once per frame?
I/flutter : Debug print: Am I performing this work more than once per frame?
I/flutter : &#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;&#x2580;
</code></pre><p><a href="https://docs.flutter.io/flutter/scheduler/debugPrintScheduleFrameStacks.html" target="_blank"><code>debugPrintScheduleFrameStacks</code></a>&#x8FD8;&#x53EF;&#x4EE5;&#x7528;&#x6765;&#x6253;&#x5370;&#x5BFC;&#x81F4;&#x5F53;&#x524D;&#x5E27;&#x88AB;&#x8C03;&#x5EA6;&#x7684;&#x8C03;&#x7528;&#x5806;&#x6808;&#x3002;</p>
<h2 id="&#x53EF;&#x89C6;&#x5316;&#x8C03;&#x8BD5;">&#x53EF;&#x89C6;&#x5316;&#x8C03;&#x8BD5;</h2>
<p>&#x60A8;&#x4E5F;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8BBE;&#x7F6E;<code>debugPaintSizeEnabled</code>&#x4E3A;<code>true</code>&#x4EE5;&#x53EF;&#x89C6;&#x65B9;&#x5F0F;&#x8C03;&#x8BD5;&#x5E03;&#x5C40;&#x95EE;&#x9898;&#x3002; &#x8FD9;&#x662F;&#x6765;&#x81EA;<code>rendering</code>&#x5E93;&#x7684;&#x5E03;&#x5C14;&#x503C;&#x3002;&#x5B83;&#x53EF;&#x4EE5;&#x5728;&#x4EFB;&#x4F55;&#x65F6;&#x5019;&#x542F;&#x7528;&#xFF0C;&#x5E76;&#x5728;&#x4E3A;true&#x65F6;&#x5F71;&#x54CD;&#x7ED8;&#x5236;&#x3002; &#x8BBE;&#x7F6E;&#x5B83;&#x7684;&#x6700;&#x7B80;&#x5355;&#x65B9;&#x6CD5;&#x662F;&#x5728;<code>void main()</code>&#x7684;&#x9876;&#x90E8;&#x8BBE;&#x7F6E;&#x3002;</p>
<p>&#x5F53;&#x5B83;&#x88AB;&#x542F;&#x7528;&#x65F6;&#xFF0C;&#x6240;&#x6709;&#x7684;&#x76D2;&#x5B50;&#x90FD;&#x4F1A;&#x5F97;&#x5230;&#x4E00;&#x4E2A;&#x660E;&#x4EAE;&#x7684;&#x6DF1;&#x9752;&#x8272;&#x8FB9;&#x6846;&#xFF0C;padding&#xFF08;&#x6765;&#x81EA;widget&#x5982;Padding&#xFF09;&#x663E;&#x793A;&#x4E3A;&#x6D45;&#x84DD;&#x8272;&#xFF0C;&#x5B50;widget&#x5468;&#x56F4;&#x6709;&#x4E00;&#x4E2A;&#x6DF1;&#x84DD;&#x8272;&#x6846;&#xFF0C; &#x5BF9;&#x9F50;&#x65B9;&#x5F0F;&#xFF08;&#x6765;&#x81EA;widget&#x5982;Center&#x548C;Align&#xFF09;&#x663E;&#x793A;&#x4E3A;&#x9EC4;&#x8272;&#x7BAD;&#x5934;. &#x7A7A;&#x767D;&#xFF08;&#x5982;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x5B50;&#x8282;&#x70B9;&#x7684;Container&#xFF09;&#x4EE5;&#x7070;&#x8272;&#x663E;&#x793A;&#x3002;</p>
<p><a href="https://docs.flutter.io/flutter/rendering/debugPaintBaselinesEnabled.html" target="_blank"><code>debugPaintBaselinesEnabled</code></a>&#x505A;&#x4E86;&#x7C7B;&#x4F3C;&#x7684;&#x4E8B;&#x60C5;&#xFF0C;&#x4F46;&#x5BF9;&#x4E8E;&#x5177;&#x6709;&#x57FA;&#x7EBF;&#x7684;&#x5BF9;&#x8C61;&#xFF0C;&#x6587;&#x5B57;&#x57FA;&#x7EBF;&#x4EE5;&#x7EFF;&#x8272;&#x663E;&#x793A;&#xFF0C;&#x8868;&#x610F;(ideographic)&#x57FA;&#x7EBF;&#x4EE5;&#x6A59;&#x8272;&#x663E;&#x793A;&#x3002;</p>
<p><a href="https://docs.flutter.io/flutter/rendering/debugPaintPointersEnabled.html" target="_blank"><code>debugPaintPointersEnabled</code></a>&#x6807;&#x5FD7;&#x6253;&#x5F00;&#x4E00;&#x4E2A;&#x7279;&#x6B8A;&#x6A21;&#x5F0F;&#xFF0C;&#x4EFB;&#x4F55;&#x6B63;&#x5728;&#x70B9;&#x51FB;&#x7684;&#x5BF9;&#x8C61;&#x90FD;&#x4F1A;&#x4EE5;&#x6DF1;&#x9752;&#x8272;&#x7A81;&#x51FA;&#x663E;&#x793A;&#x3002; &#x8FD9;&#x53EF;&#x4EE5;&#x5E2E;&#x52A9;&#x60A8;&#x786E;&#x5B9A;&#x67D0;&#x4E2A;&#x5BF9;&#x8C61;&#x662F;&#x5426;&#x4EE5;&#x67D0;&#x79CD;&#x4E0D;&#x6B63;&#x786E;&#x7684;&#x65B9;&#x5F0F;&#x8FDB;&#x884C;hit&#x6D4B;&#x8BD5;&#xFF08;Flutter&#x68C0;&#x6D4B;&#x70B9;&#x51FB;&#x7684;&#x4F4D;&#x7F6E;&#x662F;&#x5426;&#x6709;&#x80FD;&#x54CD;&#x5E94;&#x7528;&#x6237;&#x64CD;&#x4F5C;&#x7684;widget&#xFF09;,&#x4F8B;&#x5982;&#xFF0C;&#x5982;&#x679C;&#x5B83;&#x5B9E;&#x9645;&#x4E0A;&#x8D85;&#x51FA;&#x4E86;&#x5176;&#x7236;&#x9879;&#x7684;&#x8303;&#x56F4;&#xFF0C;&#x9996;&#x5148;&#x4E0D;&#x4F1A;&#x8003;&#x8651;&#x901A;&#x8FC7;hit&#x6D4B;&#x8BD5;&#x3002;</p>
<p>&#x5982;&#x679C;&#x60A8;&#x5C1D;&#x8BD5;&#x8C03;&#x8BD5;&#x5408;&#x6210;&#x56FE;&#x5C42;&#xFF0C;&#x4F8B;&#x5982;&#x4EE5;&#x786E;&#x5B9A;&#x662F;&#x5426;&#x4EE5;&#x53CA;&#x5728;&#x4F55;&#x5904;&#x6DFB;&#x52A0;<code>RepaintBoundary</code> widget&#xFF0C;&#x5219;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<a href="https://docs.flutter.io/flutter/rendering/debugPaintLayerBordersEnabled.html" target="_blank"><code>debugPaintLayerBordersEnabled</code></a> &#x6807;&#x5FD7;&#xFF0C; &#x8BE5;&#x6807;&#x5FD7;&#x7528;&#x6A59;&#x8272;&#x6216;&#x8F6E;&#x5ED3;&#x7EBF;&#x6807;&#x51FA;&#x6BCF;&#x4E2A;&#x5C42;&#x7684;&#x8FB9;&#x754C;&#xFF0C;&#x6216;&#x8005;&#x4F7F;&#x7528;<a href="https://docs.flutter.io/flutter/rendering/debugRepaintRainbowEnabled.html" target="_blank"><code>debugRepaintRainbowEnabled</code></a>&#x6807;&#x5FD7;&#xFF0C; &#x53EA;&#x8981;&#x4ED6;&#x4EEC;&#x91CD;&#x7ED8;&#x65F6;&#xFF0C;&#x8FD9;&#x4F1A;&#x4F7F;&#x8BE5;&#x5C42;&#x88AB;&#x4E00;&#x7EC4;&#x65CB;&#x8F6C;&#x8272;&#x6240;&#x8986;&#x76D6;&#x3002;</p>
<p>&#x6240;&#x6709;&#x8FD9;&#x4E9B;&#x6807;&#x5FD7;&#x53EA;&#x80FD;&#x5728;&#x8C03;&#x8BD5;&#x6A21;&#x5F0F;&#x4E0B;&#x5DE5;&#x4F5C;&#x3002;&#x901A;&#x5E38;&#xFF0C;Flutter&#x6846;&#x67B6;&#x4E2D;&#x4EE5;&#x201C;<code>debug...</code>&#x201D; &#x5F00;&#x5934;&#x7684;&#x4EFB;&#x4F55;&#x5185;&#x5BB9;&#x90FD;&#x53EA;&#x80FD;&#x5728;&#x8C03;&#x8BD5;&#x6A21;&#x5F0F;&#x4E0B;&#x5DE5;&#x4F5C;&#x3002;</p>
<h2 id="&#x8C03;&#x8BD5;&#x52A8;&#x753B;">&#x8C03;&#x8BD5;&#x52A8;&#x753B;</h2>
<p>&#x8C03;&#x8BD5;&#x52A8;&#x753B;&#x6700;&#x7B80;&#x5355;&#x7684;&#x65B9;&#x6CD5;&#x662F;&#x51CF;&#x6162;&#x5B83;&#x4EEC;&#x7684;&#x901F;&#x5EA6;&#x3002;&#x4E3A;&#x6B64;&#xFF0C;&#x8BF7;&#x5C06;<a href="https://docs.flutter.io/flutter/scheduler/timeDilation.html" target="_blank"><code>timeDilation</code></a>&#x53D8;&#x91CF;&#xFF08;&#x5728;scheduler&#x5E93;&#x4E2D;&#xFF09;&#x8BBE;&#x7F6E;&#x4E3A;&#x5927;&#x4E8E;1.0&#x7684;&#x6570;&#x5B57;&#xFF0C;&#x4F8B;&#x5982;50.0&#x3002; &#x6700;&#x597D;&#x5728;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x542F;&#x52A8;&#x65F6;&#x53EA;&#x8BBE;&#x7F6E;&#x4E00;&#x6B21;&#x3002;&#x5982;&#x679C;&#x60A8;&#x5728;&#x8FD0;&#x884C;&#x4E2D;&#x66F4;&#x6539;&#x5B83;&#xFF0C;&#x5C24;&#x5176;&#x662F;&#x5728;&#x52A8;&#x753B;&#x8FD0;&#x884C;&#x65F6;&#x5C06;&#x5176;&#x503C;&#x51CF;&#x5C0F;&#xFF0C;&#x5219;&#x6846;&#x67B6;&#x7684;&#x89C2;&#x5BDF;&#x65F6;&#x53EF;&#x80FD;&#x4F1A;&#x5012;&#x9000;&#xFF0C;&#x8FD9;&#x53EF;&#x80FD;&#x4F1A;&#x5BFC;&#x81F4;&#x65AD;&#x8A00;&#x5E76;&#x4E14;&#x901A;&#x5E38;&#x4F1A;&#x5E72;&#x6270;&#x60A8;&#x7684;&#x5DE5;&#x4F5C;&#x3002;</p>
<h2 id="&#x8C03;&#x8BD5;&#x6027;&#x80FD;&#x95EE;&#x9898;">&#x8C03;&#x8BD5;&#x6027;&#x80FD;&#x95EE;&#x9898;</h2>
<p>&#x8981;&#x4E86;&#x89E3;&#x60A8;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x5BFC;&#x81F4;&#x91CD;&#x65B0;&#x5E03;&#x5C40;&#x6216;&#x91CD;&#x65B0;&#x7ED8;&#x5236;&#x7684;&#x539F;&#x56E0;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x5206;&#x522B;&#x8BBE;&#x7F6E;<a href="https://docs.flutter.io/flutter/rendering/debugPrintMarkNeedsLayoutStacks.html" target="_blank"><code>debugPrintMarkNeedsLayoutStacks</code></a>&#x548C; <a href="https://docs.flutter.io/flutter/rendering/debugPrintMarkNeedsPaintStacks.html" target="_blank"><code>debugPrintMarkNeedsPaintStacks</code></a>&#x6807;&#x5FD7;&#x3002; &#x6BCF;&#x5F53;&#x6E32;&#x67D3;&#x76D2;&#x88AB;&#x8981;&#x6C42;&#x91CD;&#x65B0;&#x5E03;&#x5C40;&#x548C;&#x91CD;&#x65B0;&#x7ED8;&#x5236;&#x65F6;&#xFF0C;&#x8FD9;&#x4E9B;&#x90FD;&#x4F1A;&#x5C06;&#x5806;&#x6808;&#x8DDF;&#x8E2A;&#x8BB0;&#x5F55;&#x5230;&#x63A7;&#x5236;&#x53F0;&#x3002;&#x5982;&#x679C;&#x8FD9;&#x79CD;&#x65B9;&#x6CD5;&#x5BF9;&#x60A8;&#x6709;&#x7528;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<code>services</code>&#x5E93;&#x4E2D;&#x7684;<code>debugPrintStack()</code>&#x65B9;&#x6CD5;&#x6309;&#x9700;&#x6253;&#x5370;&#x5806;&#x6808;&#x75D5;&#x8FF9;&#x3002;</p>
<h3 id="&#x8861;&#x91CF;&#x5E94;&#x7528;&#x542F;&#x52A8;&#x65F6;&#x95F4;">&#x8861;&#x91CF;&#x5E94;&#x7528;&#x542F;&#x52A8;&#x65F6;&#x95F4;</h3>
<p>&#x8981;&#x6536;&#x96C6;&#x6709;&#x5173;Flutter&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x542F;&#x52A8;&#x6240;&#x9700;&#x65F6;&#x95F4;&#x7684;&#x8BE6;&#x7EC6;&#x4FE1;&#x606F;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x8FD0;&#x884C;<code>flutter run</code>&#x65F6;&#x4F7F;&#x7528;<code>trace-startup</code>&#x548C;<code>profile</code>&#x9009;&#x9879;&#x3002;</p>
<pre class="language-"><code>$ flutter run --trace-startup --profile
</code></pre><p>&#x8DDF;&#x8E2A;&#x8F93;&#x51FA;&#x4FDD;&#x5B58;&#x4E3A;<code>start_up_info.json</code>&#xFF0C;&#x5728;Flutter&#x5DE5;&#x7A0B;&#x76EE;&#x5F55;&#x5728;build&#x76EE;&#x5F55;&#x4E0B;&#x3002;&#x8F93;&#x51FA;&#x5217;&#x51FA;&#x4E86;&#x4ECE;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x542F;&#x52A8;&#x5230;&#x8FD9;&#x4E9B;&#x8DDF;&#x8E2A;&#x4E8B;&#x4EF6;&#xFF08;&#x4EE5;&#x5FAE;&#x79D2;&#x6355;&#x83B7;&#xFF09;&#x6240;&#x7528;&#x7684;&#x65F6;&#x95F4;&#xFF1A;</p>
<ul>
<li>&#x8FDB;&#x5165;Flutter&#x5F15;&#x64CE;&#x65F6;.</li>
<li>&#x5C55;&#x793A;&#x5E94;&#x7528;&#x7B2C;&#x4E00;&#x5E27;&#x65F6;.</li>
<li>&#x521D;&#x59CB;&#x5316;Flutter&#x6846;&#x67B6;&#x65F6;.</li>
<li>&#x5B8C;&#x6210;Flutter&#x6846;&#x67B6;&#x521D;&#x59CB;&#x5316;&#x65F6;.</li>
</ul>
<p>&#x5982; :</p>
<pre class="language-"><code>{
  &quot;engineEnterTimestampMicros&quot;: 96025565262,
  &quot;timeToFirstFrameMicros&quot;: 2171978,
  &quot;timeToFrameworkInitMicros&quot;: 514585,
  &quot;timeAfterFrameworkInitMicros&quot;: 1657393
}
</code></pre><h3 id="&#x8DDF;&#x8E2A;dart&#x4EE3;&#x7801;&#x6027;&#x80FD;">&#x8DDF;&#x8E2A;Dart&#x4EE3;&#x7801;&#x6027;&#x80FD;</h3>
<p>&#x8981;&#x6267;&#x884C;&#x81EA;&#x5B9A;&#x4E49;&#x6027;&#x80FD;&#x8DDF;&#x8E2A;&#x548C;&#x6D4B;&#x91CF;Dart&#x4EFB;&#x610F;&#x4EE3;&#x7801;&#x6BB5;&#x7684;wall/CPU&#x65F6;&#x95F4;&#xFF08;&#x7C7B;&#x4F3C;&#x4E8E;&#x5728;Android&#x4E0A;&#x4F7F;&#x7528;<a href="https://developer.android.com/studio/profile/systrace.html" target="_blank">systrace</a>&#xFF09;&#x3002; &#x4F7F;&#x7528;<code>dart:developer</code>&#x7684;<a href="https://api.dartlang.org/stable/dart-developer/Timeline-class.html" target="_blank">Timeline</a>&#x5DE5;&#x5177;&#x6765;&#x5305;&#x542B;&#x4F60;&#x60F3;&#x6D4B;&#x8BD5;&#x7684;&#x4EE3;&#x7801;&#x5757;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;</p>
<pre class="language-"><code>Timeline.startSync(&apos;interesting function&apos;);
// iWonderHowLongThisTakes();
Timeline.finishSync();
</code></pre><p>&#x7136;&#x540E;&#x6253;&#x5F00;&#x4F60;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7684;Observatory timeline&#x9875;&#x9762;&#xFF0C;&#x5728;&#x201D;Recorded Streams&#x201D;&#x4E2D;&#x9009;&#x62E9;&#x2019;Dart&#x2019;&#x590D;&#x9009;&#x6846;&#xFF0C;&#x5E76;&#x6267;&#x884C;&#x4F60;&#x60F3;&#x6D4B;&#x91CF;&#x7684;&#x529F;&#x80FD;&#x3002;</p>
<p>&#x5237;&#x65B0;&#x9875;&#x9762;&#x5C06;&#x5728;Chrome&#x7684;<a href="https://www.chromium.org/developers/how-tos/trace-event-profiling-tool" target="_blank">&#x8DDF;&#x8E2A;&#x5DE5;&#x5177;</a>&#x4E2D;&#x663E;&#x793A;&#x5E94;&#x7528;&#x6309;&#x65F6;&#x95F4;&#x987A;&#x5E8F;&#x6392;&#x5217;&#x7684;timeline&#x8BB0;&#x5F55;&#x3002;</p>
<p>&#x8BF7;&#x786E;&#x4FDD;&#x8FD0;&#x884C;<code>flutter run</code>&#x65F6;&#x5E26;&#x6709;<code>--profile</code>&#x6807;&#x5FD7;&#xFF0C;&#x4EE5;&#x786E;&#x4FDD;&#x8FD0;&#x884C;&#x65F6;&#x6027;&#x80FD;&#x7279;&#x5F81;&#x4E0E;&#x60A8;&#x7684;&#x6700;&#x7EC8;&#x4EA7;&#x54C1;&#x5DEE;&#x5F02;&#x6700;&#x5C0F;&#x3002;</p>
<h2 id="performance-overlay">Performance Overlay</h2>
<p>&#x8981;&#x83B7;&#x5F97;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x6027;&#x80FD;&#x56FE;&#xFF0C;&#x8BF7;&#x5C06;<a href="https://docs.flutter.io/flutter/material/MaterialApp/MaterialApp.html" target="_blank"><code>MaterialApp</code></a>&#x6784;&#x9020;&#x51FD;&#x6570;&#x7684;<code>showPerformanceOverlay</code>&#x53C2;&#x6570;&#x8BBE;&#x7F6E;&#x4E3A;true&#x3002; <a href="https://docs.flutter.io/flutter/widgets/WidgetsApp-class.html" target="_blank"><code>WidgetsApp</code></a>&#x6784;&#x9020;&#x51FD;&#x6570;&#x4E5F;&#x6709;&#x7C7B;&#x4F3C;&#x7684;&#x53C2;&#x6570;&#xFF08;&#x5982;&#x679C;&#x4F60;&#x6CA1;&#x6709;&#x4F7F;&#x7528;<code>MaterialApp</code>&#x6216;&#x8005;<code>WidgetsApp</code>&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x5C06;&#x4F60;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x5305;&#x88C5;&#x5728;&#x4E00;&#x4E2A;stack&#x4E2D;&#xFF0C; &#x5E76;&#x5C06;&#x4E00;&#x4E2A;widget&#x653E;&#x5728;&#x901A;&#x8FC7;<a href="https://docs.flutter.io/flutter/widgets/PerformanceOverlay/PerformanceOverlay.allEnabled.html" target="_blank"><code>new PerformanceOverlay.allEnabled()</code></a>&#x521B;&#x5EFA;&#x7684;stack&#x4E0A;&#x6765;&#x83B7;&#x5F97;&#x76F8;&#x540C;&#x7684;&#x6548;&#x679C;&#xFF09;&#x3002;</p>
<p>&#x8FD9;&#x5C06;&#x663E;&#x793A;&#x4E24;&#x4E2A;&#x56FE;&#x8868;&#x3002;&#x7B2C;&#x4E00;&#x4E2A;&#x662F;GPU&#x7EBF;&#x7A0B;&#x82B1;&#x8D39;&#x7684;&#x65F6;&#x95F4;&#xFF0C;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x662F;CPU&#x7EBF;&#x7A0B;&#x82B1;&#x8D39;&#x7684;&#x65F6;&#x95F4;&#x3002; &#x56FE;&#x4E2D;&#x7684;&#x767D;&#x7EBF;&#x4EE5;16ms&#x589E;&#x91CF;&#x6CBF;&#x7EB5;&#x8F74;&#x663E;&#x793A;; &#x5982;&#x679C;&#x56FE;&#x4E2D;&#x8D85;&#x8FC7;&#x8FD9;&#x4E09;&#x6761;&#x7EBF;&#x4E4B;&#x4E00;&#xFF0C;&#x90A3;&#x4E48;&#x60A8;&#x7684;&#x8FD0;&#x884C;&#x9891;&#x7387;&#x4F4E;&#x4E8E;60Hz&#x3002;&#x6A2A;&#x8F74;&#x4EE3;&#x8868;&#x5E27;&#x3002; &#x8BE5;&#x56FE;&#x4EC5;&#x5728;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7ED8;&#x5236;&#x65F6;&#x66F4;&#x65B0;&#xFF0C;&#x56E0;&#x6B64;&#x5982;&#x679C;&#x5B83;&#x5904;&#x4E8E;&#x7A7A;&#x95F2;&#x72B6;&#x6001;&#xFF0C;&#x8BE5;&#x56FE;&#x5C06;&#x505C;&#x6B62;&#x79FB;&#x52A8;&#x3002;</p>
<p>&#x8FD9;&#x5E94;&#x8BE5;&#x59CB;&#x7EC8;&#x5728;&#x53D1;&#x5E03;&#x6A21;&#x5F0F;&#xFF08;release mode&#xFF09;&#x4E0B;&#x6D4B;&#x8BD5;&#xFF0C;&#x56E0;&#x4E3A;&#x5728;&#x8C03;&#x8BD5;&#x6A21;&#x5F0F;&#x4E0B;&#xFF0C;&#x6545;&#x610F;&#x727A;&#x7272;&#x6027;&#x80FD;&#x6765;&#x6362;&#x53D6;&#x6709;&#x52A9;&#x4E8E;&#x5F00;&#x53D1;&#x8C03;&#x8BD5;&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x5982;assert&#x58F0;&#x660E;&#xFF0C;&#x8FD9;&#x4E9B;&#x90FD;&#x662F;&#x975E;&#x5E38;&#x8017;&#x65F6;&#x7684;&#xFF0C;&#x56E0;&#x6B64;&#x7ED3;&#x679C;&#x5C06;&#x4F1A;&#x4EA7;&#x751F;&#x8BEF;&#x5BFC;&#x3002;</p>
<h2 id="material-grid">Material grid</h2>
<p>&#x5728;&#x5F00;&#x53D1;&#x5B9E;&#x73B0;<a href="https://www.google.com/design/spec/material-design/introduction.html" target="_blank">Material Design</a>&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x65F6;&#xFF0C; &#x5C06;<a href="https://www.google.com/design/spec/layout/metrics-keylines.html" target="_blank">Material Design&#x57FA;&#x7EBF;&#x7F51;&#x683C;</a>&#x8986;&#x76D6;&#x5728;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x4E0A;&#x53EF;&#x80FD;&#x6709;&#x52A9;&#x4E8E;&#x9A8C;&#x8BC1;&#x5BF9;&#x9F50;&#x3002; &#x4E3A;&#x6B64;&#xFF0C;<a href="https://docs.flutter.io/flutter/material/MaterialApp/MaterialApp.html" target="_blank"><code>MaterialApp</code> &#x6784;&#x9020;&#x51FD;&#x6570;</a> &#x6709;&#x4E00;&#x4E2A;<code>debugShowMaterialGrid</code>&#x53C2;&#x6570;&#xFF0C; &#x5F53;&#x5728;&#x8C03;&#x8BD5;&#x6A21;&#x5F0F;&#x8BBE;&#x7F6E;&#x4E3A;true&#x65F6;&#xFF0C;&#x5B83;&#x5C06;&#x8986;&#x76D6;&#x8FD9;&#x6837;&#x4E00;&#x4E2A;&#x7F51;&#x683C;&#x3002;</p>
<p>&#x60A8;&#x4E5F;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4F7F;&#x7528;<a href="https://docs.flutter.io/flutter/widgets/GridPaper-class.html" target="_blank"><code>GridPaper</code></a>widget&#x5C06;&#x8FD9;&#x79CD;&#x7F51;&#x683C;&#x8986;&#x76D6;&#x5728;&#x975E;Material&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x4E0A; &#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="flutter_assets_mgr.html" class="navigation navigation-prev " aria-label="Previous page: 资源管理">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="thread_model_and_error_report.html" class="navigation navigation-next " aria-label="Next page: Dart线程模型及异常捕获">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"调试Flutter APP","level":"1.3.5","depth":2,"next":{"title":"Dart线程模型及异常捕获","level":"1.3.6","depth":2,"path":"chapter2/thread_model_and_error_report.md","ref":"chapter2/thread_model_and_error_report.md","articles":[]},"previous":{"title":"资源管理","level":"1.3.4","depth":2,"path":"chapter2/flutter_assets_mgr.md","ref":"chapter2/flutter_assets_mgr.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-search","search-pro","ace","splitter","toggle-chapters","prism","donate","-highlight"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{"lang":{"shell":"bash"}},"ace":{},"splitter":{},"search-pro":{"cutWordLib":"nodejieba","defineWord":["Gitbook Use"]},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"donate":{"alipay":"","alipayText":"支付宝打赏","button":"赏","title":"","wechat":"https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action@1.0.3/docs/imgs/pay.jpeg","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","author":"wendux 824783146@qq.com","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"《Flutter实战》","language":"zh-hans","links":{"sharing":{"all":null,"facebook":null,"google":null,"twitter":null,"weibo":null},"sidebar":{"<div><img height=20 style='position:relative; top:5px; padding-right:5px ' src='https://cdn.jsdelivr.net/gh/flutterchina/website@1.0/images/favicon.png'/> Flutter中文网</div>":"https://flutterchina.club"}},"gitbook":"*","description":"记录Gitbook的配置和一些插件的使用"},"file":{"path":"chapter2/flutter_app_debug.md","mtime":"2019-01-15T12:03:59.127Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-05-14T10:32:57.346Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>



    <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/theme.js"></script>
    
        
        <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-ace/ace/ace.js"></script>
        
    
        
        <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-ace/ace.js"></script>
        
    
        
        <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    


<script>
    var _hmt = _hmt || [];
    $("#bd").remove();
    (function () {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?170231fea4f81697eb046edc1a91fe5b";
        var s = document.getElementsByTagName("script")[0];
        hm.id = "bd"
        s.parentNode.insertBefore(hm, s);
    })();

    function init() {
        var p = location.pathname;
        _hmt.push(['_trackPageview', p]);
        if (p[p.length - 1] === '/') {
            p += "index.md"
        } else {
            p = p.split(".")[0] + ".md";
        }
        p = "https://github.com/flutterchina/flutter-in-action/blob/master/docs" + p;
        $(".pull-right .fa-edit").parent("a").attr("href", p);
        $("table").wrap("<div style='overflow: auto'></div>");
        //百度统计
        var e = /([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi, r = window.location.href,
            t = document.referrer;
        if (!e.test(r)) {
            var o = "https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif";
            t ? (o += "?r=" + encodeURIComponent(document.referrer), r && (o += "&l=" + r)) : r && (o += "?l=" + r);
            var i = new Image;
            i.src = o
        }
        $(".copyright").remove();
        $("<div class='copyright'> 本书仍在勘误阶段，请勿以任何形式私自传播，作者保留对本书的版权。</div>").appendTo(".page-inner");
    }

    function hookAPI(api, ob, fn) {
        return function () {
            var result = api.apply(ob, [].slice.call(arguments));

            setTimeout(fn, 1000);
            return result;
        }
    }

    function addAD() {
        if (location.href !== 'https://book.flutterchina.club/' && $("#book-search-results .ad").length == 0) {
            var id=Math.ceil(Math.random()*10)%2;
            $(".ad"+id).clone().hide().fadeIn().prependTo("#book-search-results")
            setTimeout(function () {
                $(".body-inner").animate({scrollTop: 0}, 200)
            }, 800);
        }
    }

    function _track(p,url) {
        _hmt.push(['_trackEvent', 'ad', 'click', p]);
        setTimeout(function () {
            location.href = url
        }, 100);
    }

    // setInterval(addAD, 300);

    init();


    if (history.pushState) {
        history.pushState = hookAPI(history.pushState, history, init);
    }

</script>
</body>

</html>

